From 421c2f770dcb42147266c5630f0919f247d21b9c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:03:11 +0000 Subject: [PATCH 01/12] chore(internal): version bump (#166) --- sig/orb/version.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 08bca4b6..856d6549 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.27" + VERSION: "0.1.0-alpha.28" end From 0925835eceda886f027946a4368ddc534f5c3ce0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:29:36 +0000 Subject: [PATCH 02/12] chore: ignore some spurious linter warnings and formatting changes (#168) --- .rubocop.yml | 4 ++++ lib/orb/base_page.rb | 4 ++++ lib/orb/page.rb | 2 ++ lib/orb/util.rb | 2 ++ orb.gemspec | 2 +- rbi/lib/orb/base_model.rbi | 36 ++++++++++++++++++++++++++++++++---- rbi/lib/orb/page.rbi | 4 ++++ sig/orb/base_model.rbs | 14 ++++++++++++++ sig/orb/page.rbs | 2 ++ 9 files changed, 65 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ec407bea..83a49de8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,6 +10,10 @@ AllCops: SuggestExtensions: false TargetRubyVersion: 3.1.0 +# Whether MFA is required or not should be left to the token configuration +Gemspec/RequireMFA: + Enabled: false + # Don't require this extra line break, it can be excessive. Layout/EmptyLineAfterGuardClause: Enabled: false diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb index 596c20b4..0a557fa9 100644 --- a/lib/orb/base_page.rb +++ b/lib/orb/base_page.rb @@ -28,6 +28,8 @@ module Orb # top_levels => Array # ``` module BasePage + # rubocop:disable Lint/UnusedMethodArgument + # @return [Boolean] def next_page? = (raise NotImplementedError) @@ -56,5 +58,7 @@ def initialize(client:, req:, headers:, page_data:) @req = req super() end + + # rubocop:enable Lint/UnusedMethodArgument end end diff --git a/lib/orb/page.rb b/lib/orb/page.rb index e06ca333..d5167bdf 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -91,7 +91,9 @@ def auto_paging_each(&blk) # @return [String] def inspect + # rubocop:disable Layout/LineLength "#<#{self.class}:0x#{object_id.to_s(16)} data=#{data.inspect} pagination_metadata=#{pagination_metadata.inspect}>" + # rubocop:enable Layout/LineLength end class PaginationMetadata < Orb::BaseModel diff --git a/lib/orb/util.rb b/lib/orb/util.rb index af67f230..0d52cb66 100644 --- a/lib/orb/util.rb +++ b/lib/orb/util.rb @@ -452,6 +452,7 @@ def string_io(&blk) end class << self + # rubocop:disable Naming/MethodParameterName # @api private # # @param y [Enumerator::Yielder] @@ -489,6 +490,7 @@ class << self end y << "\r\n" end + # rubocop:enable Naming/MethodParameterName # @api private # diff --git a/orb.gemspec b/orb.gemspec index c59d60fa..356dc339 100644 --- a/orb.gemspec +++ b/orb.gemspec @@ -15,5 +15,5 @@ Gem::Specification.new do |s| s.homepage = "https://gemdocs.org/gems/orb" s.metadata["homepage_uri"] = s.homepage s.metadata["source_code_uri"] = "https://github.com/orbcorp/orb-ruby" - s.metadata["rubygems_mfa_required"] = "false" + s.metadata["rubygems_mfa_required"] = false.to_s end diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index 266d8b17..57303cb7 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -310,6 +310,20 @@ module Orb Elem = type_member(:out) + sig(:final) do + params( + type_info: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ), + spec: T::Hash[Symbol, T.anything] + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end + sig(:final) { params(other: T.anything).returns(T::Boolean) } def ===(other) end @@ -360,9 +374,9 @@ module Orb ), spec: T::Hash[Symbol, T.anything] ) - .returns(T.attached_class) + .void end - def self.new(type_info, spec = {}) + def initialize(type_info, spec = {}) end end @@ -377,6 +391,20 @@ module Orb Elem = type_member(:out) + sig(:final) do + params( + type_info: T.any( + T::Hash[Symbol, T.anything], + T.proc.returns(Orb::Converter::Input), + Orb::Converter::Input + ), + spec: T::Hash[Symbol, T.anything] + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end + sig(:final) { params(other: T.anything).returns(T::Boolean) } def ===(other) end @@ -427,9 +455,9 @@ module Orb ), spec: T::Hash[Symbol, T.anything] ) - .returns(T.attached_class) + .void end - def self.new(type_info, spec = {}) + def initialize(type_info, spec = {}) end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index f0498a6c..a5bb7ac1 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -22,6 +22,10 @@ module Orb def pagination_metadata=(_) end + sig { returns(String) } + def inspect + end + class PaginationMetadata < Orb::BaseModel sig { returns(T::Boolean) } def has_more diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs index e51131d6..0a6f03d1 100644 --- a/sig/orb/base_model.rbs +++ b/sig/orb/base_model.rbs @@ -118,6 +118,13 @@ module Orb class ArrayOf[Elem] include Orb::Converter + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Converter::input + | Orb::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + def ===: (top other) -> bool def ==: (top other) -> bool @@ -143,6 +150,13 @@ module Orb class HashOf[Elem] include Orb::Converter + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Converter::input + | Orb::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + def ===: (top other) -> bool def ==: (top other) -> bool diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 598067ad..8623dbec 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -6,6 +6,8 @@ module Orb attr_accessor pagination_metadata: PaginationMetadata + def inspect: -> String + type pagination_metadata = { has_more: bool, next_cursor: String? } class PaginationMetadata < Orb::BaseModel attr_accessor has_more: bool From 99f36efba8586dae3cde19d103254335142e8341 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 20:33:23 +0000 Subject: [PATCH 03/12] chore: document Client's concurrency capability (#169) --- README.md | 12 ++++++++++++ lib/orb/pooled_net_requester.rb | 9 ++++++++- lib/orb/util.rb | 17 ++++++++++------- rbi/lib/orb/base_client.rbi | 1 + rbi/lib/orb/pooled_net_requester.rbi | 4 ++++ rbi/lib/orb/util.rbi | 5 +++++ sig/orb/pooled_net_requester.rbs | 2 ++ 7 files changed, 42 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 84d22f22..6905b70d 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,18 @@ model = CustomerCreateParams.new(email: "example-customer@withorb.com", name: "M orb.customers.create(**model) ``` +## Advanced + +### Concurrency & Connection Pooling + +The `Orb::Client` instances are thread-safe, and should be re-used across multiple threads. By default, each `Client` have their own HTTP connection pool, with a maximum number of connections equal to thread count. + +When the maximum number of connections has been checked out from the connection pool, the `Client` will wait for an in use connection to become available. The queue time for this mechanism is accounted for by the per-request timeout. + +Unless otherwise specified, other classes in the SDK do not have locks protecting their underlying data structure. + +Currently, `Orb::Client` instances are only fork-safe if there are no in-flight HTTP requests. + ## Versioning This package follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions. As the library is in initial development and has a major version of `0`, APIs may change at any time. diff --git a/lib/orb/pooled_net_requester.rb b/lib/orb/pooled_net_requester.rb index f90b8969..c6c20ced 100644 --- a/lib/orb/pooled_net_requester.rb +++ b/lib/orb/pooled_net_requester.rb @@ -3,6 +3,10 @@ module Orb # @api private class PooledNetRequester + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 + class << self # @api private # @@ -124,7 +128,10 @@ def execute(request) end self.class.calibrate_socket_timeout(conn, deadline) - conn.start unless conn.started? + unless conn.started? + conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT + conn.start + end self.class.calibrate_socket_timeout(conn, deadline) conn.request(req) do |rsp| diff --git a/lib/orb/util.rb b/lib/orb/util.rb index 0d52cb66..10399952 100644 --- a/lib/orb/util.rb +++ b/lib/orb/util.rb @@ -367,13 +367,14 @@ class << self # @return [Hash{String=>String}] def normalized_headers(*headers) {}.merge(*headers.compact).to_h do |key, val| - case val - in Array - val.map { _1.to_s.strip }.join(", ") - else - val&.to_s&.strip - end - [key.downcase, val] + value = + case val + in Array + val.map { _1.to_s.strip }.join(", ") + else + val&.to_s&.strip + end + [key.downcase, value] end end end @@ -453,6 +454,7 @@ def string_io(&blk) class << self # rubocop:disable Naming/MethodParameterName + # @api private # # @param y [Enumerator::Yielder] @@ -490,6 +492,7 @@ class << self end y << "\r\n" end + # rubocop:enable Naming/MethodParameterName # @api private diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 41561ce4..ca8f3d29 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -40,6 +40,7 @@ module Orb } end + # from whatwg fetch spec MAX_REDIRECTS = 20 PLATFORM_HEADERS = T::Hash[String, String] diff --git a/rbi/lib/orb/pooled_net_requester.rbi b/rbi/lib/orb/pooled_net_requester.rbi index c6a2a39d..cd44aa8e 100644 --- a/rbi/lib/orb/pooled_net_requester.rbi +++ b/rbi/lib/orb/pooled_net_requester.rbi @@ -7,6 +7,10 @@ module Orb {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} end + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 + class << self # @api private sig { params(url: URI::Generic).returns(Net::HTTP) } diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index 1f2ab94a..1769cc4a 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -52,6 +52,11 @@ module Orb end end + # Use this to indicate that a value should be explicitly removed from a data + # structure when using `Orb::Util.deep_merge`. + # + # e.g. merging `{a: 1}` and `{a: OMIT}` should produce `{}`, where merging + # `{a: 1}` and `{}` would produce `{a: 1}`. OMIT = T.let(T.anything, T.anything) class << self diff --git a/sig/orb/pooled_net_requester.rbs b/sig/orb/pooled_net_requester.rbs index 94698b8e..b59761e7 100644 --- a/sig/orb/pooled_net_requester.rbs +++ b/sig/orb/pooled_net_requester.rbs @@ -9,6 +9,8 @@ module Orb deadline: Float } + KEEP_ALIVE_TIMEOUT: 30 + def self.connect: (URI::Generic url) -> top def self.calibrate_socket_timeout: (top conn, Float deadline) -> void From b6918c1152a904e29ce040c5dd2cd5e5cb056191 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:44:28 +0000 Subject: [PATCH 04/12] chore: add `@yieldparam` to yard doc (#170) --- .rubocop.yml | 18 ++++++++++++++++++ lib/orb/pooled_net_requester.rb | 4 ++++ lib/orb/util.rb | 4 ++++ 3 files changed, 26 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 83a49de8..43fac48e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -83,6 +83,12 @@ Lint/UnusedMethodArgument: Metrics/AbcSize: Enabled: false +Metrics/BlockLength: + AllowedPatterns: + - assert_pattern + Exclude: + - "**/*.rbi" + Metrics/ClassLength: Enabled: false @@ -92,6 +98,10 @@ Metrics/CyclomaticComplexity: Metrics/MethodLength: Enabled: false +Metrics/ModuleLength: + Exclude: + - "**/*.rbi" + Metrics/ParameterLists: Enabled: false @@ -102,10 +112,18 @@ Naming/BlockForwarding: Exclude: - "**/*.rbi" +Naming/ClassAndModuleCamelCase: + Exclude: + - "**/*.rbi" + Naming/MethodParameterName: Exclude: - "**/*.rbi" +Naming/PredicateName: + Exclude: + - "**/*.rbi" + Naming/VariableNumber: Enabled: false diff --git a/lib/orb/pooled_net_requester.rb b/lib/orb/pooled_net_requester.rb index c6c20ced..3a1e5844 100644 --- a/lib/orb/pooled_net_requester.rb +++ b/lib/orb/pooled_net_requester.rb @@ -51,6 +51,7 @@ def calibrate_socket_timeout(conn, deadline) # # @param blk [Proc] # + # @yieldparam [String] # @return [Net::HTTPGenericRequest] def build_request(request, &) method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) @@ -86,6 +87,9 @@ def build_request(request, &) # @param url [URI::Generic] # @param deadline [Float] # @param blk [Proc] + # + # @raise [Timeout::Error] + # @yieldparam [Net::HTTP] private def with_pool(url, deadline:, &blk) origin = Orb::Util.uri_origin(url) timeout = deadline - Orb::Util.monotonic_secs diff --git a/lib/orb/util.rb b/lib/orb/util.rb index 10399952..6be64643 100644 --- a/lib/orb/util.rb +++ b/lib/orb/util.rb @@ -429,6 +429,8 @@ def read(max_len = nil, out_string = nil) # # @param stream [String, IO, StringIO, Enumerable] # @param blk [Proc] + # + # @yieldparam [String] def initialize(stream, &blk) @stream = stream.is_a?(String) ? StringIO.new(stream) : stream @buf = String.new.b @@ -439,6 +441,7 @@ def initialize(stream, &blk) class << self # @param blk [Proc] # + # @yieldparam [Enumerator::Yielder] # @return [Enumerable] def string_io(&blk) Enumerator.new do |y| @@ -633,6 +636,7 @@ def close_fused!(enum) # @param enum [Enumerable, nil] # @param blk [Proc] # + # @yieldparam [Enumerator::Yielder] # @return [Enumerable] def chain_fused(enum, &blk) iter = Enumerator.new { blk.call(_1) } From 7b3ad6e5dbee813dfc0a7f1ea04e01a48e31dd11 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 00:28:46 +0000 Subject: [PATCH 05/12] chore: use multi-line formatting style for really long lines (#171) --- lib/orb/base_client.rb | 17 +- lib/orb/base_page.rb | 3 +- lib/orb/page.rb | 3 +- lib/orb/resources/customers/credits/ledger.rb | 3 +- .../resources/customers/credits/top_ups.rb | 14 +- lib/orb/resources/dimensional_price_groups.rb | 3 +- rbi/lib/orb/base_client.rbi | 68 +++---- rbi/lib/orb/models/coupon.rbi | 3 +- rbi/lib/orb/models/coupon_create_params.rbi | 17 +- rbi/lib/orb/models/customer_create_params.rbi | 17 +- .../customer_update_by_external_id_params.rbi | 17 +- rbi/lib/orb/models/customer_update_params.rbi | 17 +- ...r_create_entry_by_external_id_response.rbi | 27 +-- .../credits/ledger_create_entry_response.rbi | 27 +-- .../ledger_list_by_external_id_response.rbi | 27 +-- .../credits/ledger_list_response.rbi | 27 +-- rbi/lib/orb/models/discount.rbi | 21 ++- rbi/lib/orb/models/invoice.rbi | 42 +++-- .../invoice_fetch_upcoming_response.rbi | 42 +++-- rbi/lib/orb/models/invoice_level_discount.rbi | 3 +- .../invoice_line_item_create_response.rbi | 42 +++-- rbi/lib/orb/models/plan.rbi | 23 +-- rbi/lib/orb/models/plan_create_params.rbi | 63 +++---- rbi/lib/orb/models/price.rbi | 69 +++---- rbi/lib/orb/models/subscription.rbi | 42 +++-- .../models/subscription_cancel_response.rbi | 42 +++-- .../orb/models/subscription_create_params.rbi | 172 +++++++++--------- .../models/subscription_create_response.rbi | 42 +++-- .../subscription_price_intervals_params.rbi | 111 +++++------ .../subscription_price_intervals_response.rbi | 42 +++-- ...bscription_schedule_plan_change_params.rbi | 172 +++++++++--------- ...cription_schedule_plan_change_response.rbi | 42 +++-- .../subscription_trigger_phase_response.rbi | 42 +++-- ...ption_unschedule_cancellation_response.rbi | 42 +++-- ...le_fixed_fee_quantity_updates_response.rbi | 42 +++-- ...schedule_pending_plan_changes_response.rbi | 42 +++-- ...ion_update_fixed_fee_quantity_response.rbi | 42 +++-- .../subscription_update_trial_response.rbi | 42 +++-- rbi/lib/orb/models/subscription_usage.rbi | 17 +- rbi/lib/orb/pooled_net_requester.rbi | 13 +- rbi/lib/orb/util.rbi | 26 +-- test/orb/resources/alerts_test.rb | 25 +-- test/orb/resources/coupons_test.rb | 9 +- test/orb/resources/credit_notes_test.rb | 10 +- .../customers/credits/ledger_test.rb | 26 +-- .../customers/credits/top_ups_test.rb | 43 +++-- ...xternal_dimensional_price_group_id_test.rb | 7 +- .../dimensional_price_groups_test.rb | 11 +- test/orb/resources/events/backfills_test.rb | 9 +- test/orb/resources/events_test.rb | 34 ++-- test/orb/resources/invoice_line_items_test.rb | 17 +- test/orb/resources/invoices_test.rb | 33 ++-- test/orb/resources/metrics_test.rb | 13 +- test/orb/resources/plans_test.rb | 27 +-- test/orb/resources/prices_test.rb | 28 +-- test/orb/resources/subscriptions_test.rb | 13 +- 56 files changed, 973 insertions(+), 900 deletions(-) diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index e424dc36..bdd0bb63 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -9,14 +9,15 @@ class BaseClient MAX_REDIRECTS = 20 # rubocop:disable Style/MutableConstant - PLATFORM_HEADERS = { - "x-stainless-arch" => Orb::Util.arch, - "x-stainless-lang" => "ruby", - "x-stainless-os" => Orb::Util.os, - "x-stainless-package-version" => Orb::VERSION, - "x-stainless-runtime" => ::RUBY_ENGINE, - "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION - } + PLATFORM_HEADERS = + { + "x-stainless-arch" => Orb::Util.arch, + "x-stainless-lang" => "ruby", + "x-stainless-os" => Orb::Util.os, + "x-stainless-package-version" => Orb::VERSION, + "x-stainless-runtime" => ::RUBY_ENGINE, + "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION + } # rubocop:enable Style/MutableConstant class << self diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb index 0a557fa9..79401ec5 100644 --- a/lib/orb/base_page.rb +++ b/lib/orb/base_page.rb @@ -17,7 +17,8 @@ module Orb # # @example # ```ruby - # top_levels = page + # top_levels = + # page # .to_enum # .lazy # .select { _1.object_id.even? } diff --git a/lib/orb/page.rb b/lib/orb/page.rb index d5167bdf..0b496deb 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -17,7 +17,8 @@ module Orb # # @example # ```ruby - # coupons = page + # coupons = + # page # .to_enum # .lazy # .select { _1.object_id.even? } diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index ed3e6953..b3e03f5d 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -449,7 +449,8 @@ def create_entry(customer_id, params) # # @return [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry] def create_entry_by_external_id(external_customer_id, params) - parsed, options = Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) + parsed, options = + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) @client.request( method: :post, path: ["customers/external_customer_id/%0s/credits/ledger_entry", external_customer_id], diff --git a/lib/orb/resources/customers/credits/top_ups.rb b/lib/orb/resources/customers/credits/top_ups.rb index 5c6a9fc6..8deb1b2b 100644 --- a/lib/orb/resources/customers/credits/top_ups.rb +++ b/lib/orb/resources/customers/credits/top_ups.rb @@ -91,9 +91,10 @@ def list(customer_id, params = {}) # @return [nil] def delete(top_up_id, params) parsed, options = Orb::Models::Customers::Credits::TopUpDeleteParams.dump_request(params) - customer_id = parsed.delete(:customer_id) do - raise ArgumentError.new("missing required path argument #{_1}") - end + customer_id = + parsed.delete(:customer_id) do + raise ArgumentError.new("missing required path argument #{_1}") + end @client.request( method: :delete, path: ["customers/%0s/credits/top_ups/%1s", customer_id, top_up_id], @@ -162,9 +163,10 @@ def create_by_external_id(external_customer_id, params) # @return [nil] def delete_by_external_id(top_up_id, params) parsed, options = Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams.dump_request(params) - external_customer_id = parsed.delete(:external_customer_id) do - raise ArgumentError.new("missing required path argument #{_1}") - end + external_customer_id = + parsed.delete(:external_customer_id) do + raise ArgumentError.new("missing required path argument #{_1}") + end @client.request( method: :delete, path: [ diff --git a/lib/orb/resources/dimensional_price_groups.rb b/lib/orb/resources/dimensional_price_groups.rb index 46d10f4b..03082b84 100644 --- a/lib/orb/resources/dimensional_price_groups.rb +++ b/lib/orb/resources/dimensional_price_groups.rb @@ -88,7 +88,8 @@ def list(params = {}) # @param client [Orb::Client] def initialize(client:) @client = client - @external_dimensional_price_group_id = Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID.new(client: client) + @external_dimensional_price_group_id = + Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID.new(client: client) end end end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index ca8f3d29..35b9c2b4 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -5,40 +5,42 @@ module Orb class BaseClient abstract! - RequestComponentsShape = T.type_alias do - { - 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))] - ) - )] - ), - body: T.nilable(T.anything), - unwrap: T.nilable(Symbol), - page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), - stream: T.nilable(T::Class[T.anything]), - model: T.nilable(Orb::Converter::Input), - options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - } - end + RequestComponentsShape = + T.type_alias do + { + 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))] + ) + )] + ), + body: T.nilable(T.anything), + unwrap: T.nilable(Symbol), + page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Orb::Converter::Input), + options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + } + end - RequestInputShape = T.type_alias do - { - method: Symbol, - url: URI::Generic, - headers: T::Hash[String, String], - body: T.anything, - max_retries: Integer, - timeout: Float - } - end + RequestInputShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + max_retries: Integer, + timeout: Float + } + end # from whatwg fetch spec MAX_REDIRECTS = 20 diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index 47fa82e1..ee36a38a 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -111,7 +111,8 @@ module Orb class Discount < Orb::Union abstract! - Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)} } + Variants = + type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)} } end end end diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 09229d50..4a747ff4 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -100,14 +100,15 @@ module Orb class Discount < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ) + } + end class NewCouponPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index 5ff4be7a..0477d112 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -723,14 +723,15 @@ module Orb class TaxConfiguration < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } diff --git a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi index b532e2f6..edd1baf8 100644 --- a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi @@ -724,14 +724,15 @@ module Orb class TaxConfiguration < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 02be30cf..efd2d5dd 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -714,14 +714,15 @@ module Orb class TaxConfiguration < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 84b4b3ae..14fb1284 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -9,19 +9,20 @@ module Orb class LedgerCreateEntryByExternalIDResponse < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry + ) + } + end class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi index 07c85462..d06f339c 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -9,19 +9,20 @@ module Orb class LedgerCreateEntryResponse < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry + ) + } + end class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index a457ebfa..1fcb0231 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -9,19 +9,20 @@ module Orb class LedgerListByExternalIDResponse < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry + ) + } + end class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi index 45efd389..56e15125 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -9,19 +9,20 @@ module Orb class LedgerListResponse < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry + ) + } + end class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index 5b83a0bc..73949835 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -5,16 +5,17 @@ module Orb class Discount < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::UsageDiscount, + Orb::Models::AmountDiscount + ) + } + end end end end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index 7661ba67..2ea0162f 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -2067,17 +2067,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + } + end class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -2684,15 +2685,16 @@ module Orb class SubLineItem < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 7569ae94..cd9da565 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -2080,17 +2080,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ) + } + end class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -2697,15 +2698,16 @@ module Orb class SubLineItem < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index f7bdaa4c..88c5796e 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -5,7 +5,8 @@ module Orb class InvoiceLevelDiscount < Orb::Union abstract! - Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)} } + Variants = + type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)} } end end end diff --git a/rbi/lib/orb/models/invoice_line_item_create_response.rbi b/rbi/lib/orb/models/invoice_line_item_create_response.rbi index 9c237a98..8e624847 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -618,17 +618,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + ) + } + end class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1235,15 +1236,16 @@ module Orb class SubLineItem < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 9043a035..998adeba 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -583,17 +583,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 2a8e0bff..2a8b638b 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -286,37 +286,38 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice + ) + } + end class NewPlanUnitPrice < Orb::BaseModel # The cadence to bill for this price on. diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index ffc6bbc9..5d07e891 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -15,40 +15,41 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Price::UnitPrice, + Orb::Models::Price::PackagePrice, + Orb::Models::Price::MatrixPrice, + Orb::Models::Price::TieredPrice, + Orb::Models::Price::TieredBpsPrice, + Orb::Models::Price::BpsPrice, + Orb::Models::Price::BulkBpsPrice, + Orb::Models::Price::BulkPrice, + Orb::Models::Price::ThresholdTotalAmountPrice, + Orb::Models::Price::TieredPackagePrice, + Orb::Models::Price::GroupedTieredPrice, + Orb::Models::Price::TieredWithMinimumPrice, + Orb::Models::Price::TieredPackageWithMinimumPrice, + Orb::Models::Price::PackageWithAllocationPrice, + Orb::Models::Price::UnitWithPercentPrice, + Orb::Models::Price::MatrixWithAllocationPrice, + Orb::Models::Price::TieredWithProrationPrice, + Orb::Models::Price::UnitWithProrationPrice, + Orb::Models::Price::GroupedAllocationPrice, + Orb::Models::Price::GroupedWithProratedMinimumPrice, + Orb::Models::Price::GroupedWithMeteredMinimumPrice, + Orb::Models::Price::MatrixWithDisplayNamePrice, + Orb::Models::Price::BulkWithProrationPrice, + Orb::Models::Price::GroupedTieredPackagePrice, + Orb::Models::Price::MaxGroupTieredPackagePrice, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, + Orb::Models::Price::CumulativeGroupedBulkPrice + ) + } + end class UnitPrice < Orb::BaseModel sig { returns(String) } diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 13ad96b3..88a48505 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -549,17 +549,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1148,15 +1149,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 8b0b5915..b357d03f 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 0d800aff..7a9b1776 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -555,17 +555,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ) + } + end class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } @@ -1352,37 +1353,38 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. @@ -11153,17 +11155,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + } + end class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } @@ -11934,37 +11937,38 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 51b1ac66..3be63a6e 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index ac2132e7..59a81cd1 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -594,15 +594,16 @@ module Orb class Discount < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + } + end class AmountDiscountCreationParams < Orb::BaseModel # Only available if discount_type is `amount`. @@ -728,40 +729,41 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice + ) + } + end class NewFloatingUnitPrice < Orb::BaseModel # The cadence to bill for this price on. @@ -11245,17 +11247,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ) + } + end class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index 339bb1d0..03e7bebf 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi index 3d90a78c..eb5cbf95 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -512,17 +512,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ) + } + end class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } @@ -1309,37 +1310,38 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. @@ -11179,17 +11181,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + } + end class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } @@ -11960,37 +11963,38 @@ module Orb class Price < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi index a9d41f61..f0f05955 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index 442a2e9b..f0d0c496 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index 7db22e01..ba37841b 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index bdafeae5..7f4710bd 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -551,17 +551,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1150,15 +1151,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index e7ee633d..63f1ba14 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -535,17 +535,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1134,15 +1135,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi index a0deab96..9aa1a060 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index de6b282f..b3cfe754 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -533,17 +533,18 @@ module Orb class Adjustment < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ) + } + end class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } @@ -1132,15 +1133,16 @@ module Orb class DiscountInterval < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 11afacc9..c40d33c9 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -5,14 +5,15 @@ module Orb class SubscriptionUsage < Orb::Union abstract! - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + ) + } + end class UngroupedSubscriptionUsage < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) } diff --git a/rbi/lib/orb/pooled_net_requester.rbi b/rbi/lib/orb/pooled_net_requester.rbi index cd44aa8e..c508597c 100644 --- a/rbi/lib/orb/pooled_net_requester.rbi +++ b/rbi/lib/orb/pooled_net_requester.rbi @@ -3,9 +3,16 @@ module Orb # @api private class PooledNetRequester - RequestShape = T.type_alias do - {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} - end + RequestShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + deadline: Float + } + end # from the golang stdlib # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index 1769cc4a..09f440b8 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -123,15 +123,16 @@ module Orb end end - ParsedUriShape = T.type_alias do - { - scheme: T.nilable(String), - host: T.nilable(String), - port: T.nilable(Integer), - path: T.nilable(String), - query: T::Hash[String, T::Array[String]] - } - end + ParsedUriShape = + T.type_alias do + { + scheme: T.nilable(String), + host: T.nilable(String), + port: T.nilable(Integer), + path: T.nilable(String), + query: T::Hash[String, T::Array[String]] + } + end class << self # @api private @@ -251,9 +252,10 @@ module Orb end end - ServerSentEvent = T.type_alias do - {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} - end + ServerSentEvent = + T.type_alias do + {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} + end class << self # @api private diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index 48e8d9c3..0f9a97f2 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -80,11 +80,8 @@ def test_list end def test_create_for_customer_required_params - response = @orb.alerts.create_for_customer( - "customer_id", - currency: "currency", - type: :credit_balance_depleted - ) + response = + @orb.alerts.create_for_customer("customer_id", currency: "currency", type: :credit_balance_depleted) assert_pattern do response => Orb::Models::Alert @@ -107,11 +104,12 @@ def test_create_for_customer_required_params end def test_create_for_external_customer_required_params - response = @orb.alerts.create_for_external_customer( - "external_customer_id", - currency: "currency", - type: :credit_balance_depleted - ) + response = + @orb.alerts.create_for_external_customer( + "external_customer_id", + currency: "currency", + type: :credit_balance_depleted + ) assert_pattern do response => Orb::Models::Alert @@ -134,11 +132,8 @@ def test_create_for_external_customer_required_params end def test_create_for_subscription_required_params - response = @orb.alerts.create_for_subscription( - "subscription_id", - thresholds: [{value: 0}], - type: :usage_exceeded - ) + response = + @orb.alerts.create_for_subscription("subscription_id", thresholds: [{value: 0}], type: :usage_exceeded) assert_pattern do response => Orb::Models::Alert diff --git a/test/orb/resources/coupons_test.rb b/test/orb/resources/coupons_test.rb index c45addaa..6a938d89 100644 --- a/test/orb/resources/coupons_test.rb +++ b/test/orb/resources/coupons_test.rb @@ -4,10 +4,11 @@ class Orb::Test::Resources::CouponsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.coupons.create( - discount: {discount_type: :percentage, percentage_discount: 0}, - redemption_code: "HALFOFF" - ) + response = + @orb.coupons.create( + discount: {discount_type: :percentage, percentage_discount: 0}, + redemption_code: "HALFOFF" + ) assert_pattern do response => Orb::Models::Coupon diff --git a/test/orb/resources/credit_notes_test.rb b/test/orb/resources/credit_notes_test.rb index 00a9009f..cdd90ea9 100644 --- a/test/orb/resources/credit_notes_test.rb +++ b/test/orb/resources/credit_notes_test.rb @@ -4,14 +4,8 @@ class Orb::Test::Resources::CreditNotesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.credit_notes.create( - line_items: [ - { - amount: "amount", - invoice_line_item_id: "4khy3nwzktxv7" - } - ] - ) + response = + @orb.credit_notes.create(line_items: [{amount: "amount", invoice_line_item_id: "4khy3nwzktxv7"}]) assert_pattern do response => Orb::Models::CreditNote diff --git a/test/orb/resources/customers/credits/ledger_test.rb b/test/orb/resources/customers/credits/ledger_test.rb index ce46f445..6034e0c2 100644 --- a/test/orb/resources/customers/credits/ledger_test.rb +++ b/test/orb/resources/customers/credits/ledger_test.rb @@ -148,12 +148,13 @@ def test_list end def test_create_entry_required_params - response = @orb.customers.credits.ledger.create_entry( - "customer_id", - entry_type: :expiration_change, - expiry_date: "2019-12-27T18:11:19.117Z", - target_expiry_date: "2019-12-27" - ) + response = + @orb.customers.credits.ledger.create_entry( + "customer_id", + entry_type: :expiration_change, + expiry_date: "2019-12-27T18:11:19.117Z", + target_expiry_date: "2019-12-27" + ) assert_pattern do response => Orb::Models::Customers::Credits::LedgerCreateEntryResponse @@ -292,12 +293,13 @@ def test_create_entry_required_params end def test_create_entry_by_external_id_required_params - response = @orb.customers.credits.ledger.create_entry_by_external_id( - "external_customer_id", - entry_type: :expiration_change, - expiry_date: "2019-12-27T18:11:19.117Z", - target_expiry_date: "2019-12-27" - ) + response = + @orb.customers.credits.ledger.create_entry_by_external_id( + "external_customer_id", + entry_type: :expiration_change, + expiry_date: "2019-12-27T18:11:19.117Z", + target_expiry_date: "2019-12-27" + ) assert_pattern do response => Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse diff --git a/test/orb/resources/customers/credits/top_ups_test.rb b/test/orb/resources/customers/credits/top_ups_test.rb index d53d6512..2687504e 100644 --- a/test/orb/resources/customers/credits/top_ups_test.rb +++ b/test/orb/resources/customers/credits/top_ups_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::Customers::Credits::TopUpsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.customers.credits.top_ups.create( - "customer_id", - amount: "amount", - currency: "currency", - invoice_settings: {auto_collection: true, net_terms: 0}, - per_unit_cost_basis: "per_unit_cost_basis", - threshold: "threshold" - ) + response = + @orb.customers.credits.top_ups.create( + "customer_id", + amount: "amount", + currency: "currency", + invoice_settings: {auto_collection: true, net_terms: 0}, + per_unit_cost_basis: "per_unit_cost_basis", + threshold: "threshold" + ) assert_pattern do response => Orb::Models::Customers::Credits::TopUpCreateResponse @@ -66,14 +67,15 @@ def test_delete_required_params end def test_create_by_external_id_required_params - response = @orb.customers.credits.top_ups.create_by_external_id( - "external_customer_id", - amount: "amount", - currency: "currency", - invoice_settings: {auto_collection: true, net_terms: 0}, - per_unit_cost_basis: "per_unit_cost_basis", - threshold: "threshold" - ) + response = + @orb.customers.credits.top_ups.create_by_external_id( + "external_customer_id", + amount: "amount", + currency: "currency", + invoice_settings: {auto_collection: true, net_terms: 0}, + per_unit_cost_basis: "per_unit_cost_basis", + threshold: "threshold" + ) assert_pattern do response => Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse @@ -94,10 +96,11 @@ def test_create_by_external_id_required_params end def test_delete_by_external_id_required_params - response = @orb.customers.credits.top_ups.delete_by_external_id( - "top_up_id", - external_customer_id: "external_customer_id" - ) + response = + @orb.customers.credits.top_ups.delete_by_external_id( + "top_up_id", + external_customer_id: "external_customer_id" + ) assert_pattern do response => nil 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 60fb156a..9ba0d8ef 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 @@ -4,9 +4,10 @@ class Orb::Test::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDTest < Orb::Test::ResourceTest def test_retrieve - response = @orb.dimensional_price_groups.external_dimensional_price_group_id.retrieve( - "external_dimensional_price_group_id" - ) + response = + @orb.dimensional_price_groups.external_dimensional_price_group_id.retrieve( + "external_dimensional_price_group_id" + ) assert_pattern do response => Orb::Models::DimensionalPriceGroup diff --git a/test/orb/resources/dimensional_price_groups_test.rb b/test/orb/resources/dimensional_price_groups_test.rb index 80c43956..d9b003cb 100644 --- a/test/orb/resources/dimensional_price_groups_test.rb +++ b/test/orb/resources/dimensional_price_groups_test.rb @@ -4,11 +4,12 @@ class Orb::Test::Resources::DimensionalPriceGroupsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.dimensional_price_groups.create( - billable_metric_id: "billable_metric_id", - dimensions: %w[region instance_type], - name: "name" - ) + response = + @orb.dimensional_price_groups.create( + billable_metric_id: "billable_metric_id", + dimensions: %w[region instance_type], + name: "name" + ) assert_pattern do response => Orb::Models::DimensionalPriceGroup diff --git a/test/orb/resources/events/backfills_test.rb b/test/orb/resources/events/backfills_test.rb index e8756863..6355bf80 100644 --- a/test/orb/resources/events/backfills_test.rb +++ b/test/orb/resources/events/backfills_test.rb @@ -4,10 +4,11 @@ class Orb::Test::Resources::Events::BackfillsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.events.backfills.create( - timeframe_end: "2019-12-27T18:11:19.117Z", - timeframe_start: "2019-12-27T18:11:19.117Z" - ) + response = + @orb.events.backfills.create( + timeframe_end: "2019-12-27T18:11:19.117Z", + timeframe_start: "2019-12-27T18:11:19.117Z" + ) assert_pattern do response => Orb::Models::Events::BackfillCreateResponse diff --git a/test/orb/resources/events_test.rb b/test/orb/resources/events_test.rb index bba05c49..731e94fd 100644 --- a/test/orb/resources/events_test.rb +++ b/test/orb/resources/events_test.rb @@ -4,12 +4,13 @@ class Orb::Test::Resources::EventsTest < Orb::Test::ResourceTest def test_update_required_params - response = @orb.events.update( - "event_id", - event_name: "event_name", - properties: {}, - timestamp: "2020-12-09T16:09:53Z" - ) + response = + @orb.events.update( + "event_id", + event_name: "event_name", + properties: {}, + timestamp: "2020-12-09T16:09:53Z" + ) assert_pattern do response => Orb::Models::EventUpdateResponse @@ -37,16 +38,17 @@ def test_deprecate end def test_ingest_required_params - response = @orb.events.ingest( - events: [ - { - event_name: "event_name", - idempotency_key: "idempotency_key", - properties: {}, - timestamp: "2020-12-09T16:09:53Z" - } - ] - ) + response = + @orb.events.ingest( + events: [ + { + event_name: "event_name", + idempotency_key: "idempotency_key", + properties: {}, + timestamp: "2020-12-09T16:09:53Z" + } + ] + ) assert_pattern do response => Orb::Models::EventIngestResponse diff --git a/test/orb/resources/invoice_line_items_test.rb b/test/orb/resources/invoice_line_items_test.rb index 6664a17f..a180705f 100644 --- a/test/orb/resources/invoice_line_items_test.rb +++ b/test/orb/resources/invoice_line_items_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::InvoiceLineItemsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.invoice_line_items.create( - amount: "12.00", - end_date: "2023-09-22", - invoice_id: "4khy3nwzktxv7", - name: "Item Name", - quantity: 1, - start_date: "2023-09-22" - ) + response = + @orb.invoice_line_items.create( + amount: "12.00", + end_date: "2023-09-22", + invoice_id: "4khy3nwzktxv7", + name: "Item Name", + quantity: 1, + start_date: "2023-09-22" + ) assert_pattern do response => Orb::Models::InvoiceLineItemCreateResponse diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index 8851f159..0a45a981 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -4,22 +4,23 @@ class Orb::Test::Resources::InvoicesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.invoices.create( - currency: "USD", - invoice_date: "2019-12-27T18:11:19.117Z", - line_items: [ - { - end_date: "2023-09-22", - item_id: "4khy3nwzktxv7", - model_type: :unit, - name: "Line Item Name", - quantity: 1, - start_date: "2023-09-22", - unit_config: {unit_amount: "unit_amount"} - } - ], - net_terms: 0 - ) + response = + @orb.invoices.create( + currency: "USD", + invoice_date: "2019-12-27T18:11:19.117Z", + line_items: [ + { + end_date: "2023-09-22", + item_id: "4khy3nwzktxv7", + model_type: :unit, + name: "Line Item Name", + quantity: 1, + start_date: "2023-09-22", + unit_config: {unit_amount: "unit_amount"} + } + ], + net_terms: 0 + ) assert_pattern do response => Orb::Models::Invoice diff --git a/test/orb/resources/metrics_test.rb b/test/orb/resources/metrics_test.rb index 541db249..f3fe13a4 100644 --- a/test/orb/resources/metrics_test.rb +++ b/test/orb/resources/metrics_test.rb @@ -4,12 +4,13 @@ class Orb::Test::Resources::MetricsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.metrics.create( - description: "Sum of bytes downloaded in fast mode", - item_id: "item_id", - name: "Bytes downloaded", - sql: "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'" - ) + response = + @orb.metrics.create( + description: "Sum of bytes downloaded in fast mode", + item_id: "item_id", + name: "Bytes downloaded", + sql: "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'" + ) assert_pattern do response => Orb::Models::BillableMetric diff --git a/test/orb/resources/plans_test.rb b/test/orb/resources/plans_test.rb index 2a5d2310..b1a64ddb 100644 --- a/test/orb/resources/plans_test.rb +++ b/test/orb/resources/plans_test.rb @@ -4,19 +4,20 @@ class Orb::Test::Resources::PlansTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.plans.create( - currency: "currency", - name: "name", - prices: [ - { - cadence: :annual, - item_id: "item_id", - model_type: :unit, - name: "Annual fee", - unit_config: {unit_amount: "unit_amount"} - } - ] - ) + response = + @orb.plans.create( + currency: "currency", + name: "name", + prices: [ + { + cadence: :annual, + item_id: "item_id", + model_type: :unit, + name: "Annual fee", + unit_config: {unit_amount: "unit_amount"} + } + ] + ) assert_pattern do response => Orb::Models::Plan diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 4738eb1f..48fe5e9f 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::PricesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.prices.create( - cadence: :annual, - currency: "currency", - item_id: "item_id", - model_type: :unit, - name: "Annual fee", - unit_config: {unit_amount: "unit_amount"} - ) + response = + @orb.prices.create( + cadence: :annual, + currency: "currency", + item_id: "item_id", + model_type: :unit, + name: "Annual fee", + unit_config: {unit_amount: "unit_amount"} + ) assert_pattern do response => Orb::Models::Price @@ -2338,11 +2339,12 @@ def test_list end def test_evaluate_required_params - response = @orb.prices.evaluate( - "price_id", - timeframe_end: "2019-12-27T18:11:19.117Z", - timeframe_start: "2019-12-27T18:11:19.117Z" - ) + response = + @orb.prices.evaluate( + "price_id", + timeframe_end: "2019-12-27T18:11:19.117Z", + timeframe_start: "2019-12-27T18:11:19.117Z" + ) assert_pattern do response => Orb::Models::PriceEvaluateResponse diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index e634e8e1..bcf8afe2 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -406,10 +406,8 @@ def test_unschedule_cancellation end def test_unschedule_fixed_fee_quantity_updates_required_params - response = @orb.subscriptions.unschedule_fixed_fee_quantity_updates( - "subscription_id", - price_id: "price_id" - ) + response = + @orb.subscriptions.unschedule_fixed_fee_quantity_updates("subscription_id", price_id: "price_id") assert_pattern do response => Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse @@ -485,11 +483,8 @@ def test_unschedule_pending_plan_changes end def test_update_fixed_fee_quantity_required_params - response = @orb.subscriptions.update_fixed_fee_quantity( - "subscription_id", - price_id: "price_id", - quantity: 0 - ) + response = + @orb.subscriptions.update_fixed_fee_quantity("subscription_id", price_id: "price_id", quantity: 0) assert_pattern do response => Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse From 44a5b194dfcbea531ee4bdf63a34008304f9c878 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 18:54:46 +0000 Subject: [PATCH 06/12] chore: disable overloads in `*.rbs` definitions for readable LSP errors (#172) --- .gitignore | 9 +- .rubocop.yml | 11 +- .solargraph.yml | 10 + Rakefile | 2 +- examples/.keep | 4 + rbi/lib/orb/models/events/event_volumes.rbi | 4 +- sig/orb/base_client.rbs | 28 +- sig/orb/client.rbs | 14 +- sig/orb/errors.rbs | 34 +- sig/orb/models/alert.rbs | 56 +- .../alert_create_for_customer_params.rbs | 23 +- ...rt_create_for_external_customer_params.rbs | 24 +- .../alert_create_for_subscription_params.rbs | 24 +- sig/orb/models/alert_disable_params.rbs | 7 +- sig/orb/models/alert_enable_params.rbs | 7 +- sig/orb/models/alert_list_params.rbs | 26 +- sig/orb/models/alert_retrieve_params.rbs | 4 +- sig/orb/models/alert_update_params.rbs | 16 +- sig/orb/models/amount_discount.rbs | 14 +- sig/orb/models/billable_metric.rbs | 18 +- sig/orb/models/coupon.rbs | 20 +- sig/orb/models/coupon_archive_params.rbs | 4 +- sig/orb/models/coupon_create_params.rbs | 36 +- sig/orb/models/coupon_fetch_params.rbs | 4 +- sig/orb/models/coupon_list_params.rbs | 16 +- .../coupons/subscription_list_params.rbs | 15 +- sig/orb/models/credit_note.rbs | 150 +- sig/orb/models/credit_note_create_params.rbs | 23 +- sig/orb/models/credit_note_fetch_params.rbs | 4 +- sig/orb/models/credit_note_list_params.rbs | 20 +- sig/orb/models/customer.rbs | 157 +- sig/orb/models/customer_create_params.rbs | 164 +- sig/orb/models/customer_delete_params.rbs | 4 +- .../customer_fetch_by_external_id_params.rbs | 7 +- sig/orb/models/customer_fetch_params.rbs | 4 +- sig/orb/models/customer_list_params.rbs | 20 +- ...gateway_by_external_customer_id_params.rbs | 7 +- ...nc_payment_methods_from_gateway_params.rbs | 7 +- .../customer_update_by_external_id_params.rbs | 167 +- sig/orb/models/customer_update_params.rbs | 162 +- .../balance_transaction_create_params.rbs | 17 +- .../balance_transaction_create_response.rbs | 43 +- .../balance_transaction_list_params.rbs | 23 +- .../balance_transaction_list_response.rbs | 43 +- .../cost_list_by_external_id_params.rbs | 19 +- .../cost_list_by_external_id_response.rbs | 49 +- sig/orb/models/customers/cost_list_params.rbs | 18 +- .../models/customers/cost_list_response.rbs | 48 +- .../credit_list_by_external_id_params.rbs | 19 +- .../credit_list_by_external_id_response.rbs | 23 +- .../models/customers/credit_list_params.rbs | 18 +- .../models/customers/credit_list_response.rbs | 22 +- ...ger_create_entry_by_external_id_params.rbs | 52 +- ...r_create_entry_by_external_id_response.rbs | 438 +- .../credits/ledger_create_entry_params.rbs | 52 +- .../credits/ledger_create_entry_response.rbs | 438 +- .../ledger_list_by_external_id_params.rbs | 31 +- .../ledger_list_by_external_id_response.rbs | 438 +- .../customers/credits/ledger_list_params.rbs | 31 +- .../credits/ledger_list_response.rbs | 438 +- .../top_up_create_by_external_id_params.rbs | 44 +- .../top_up_create_by_external_id_response.rbs | 42 +- .../credits/top_up_create_params.rbs | 44 +- .../credits/top_up_create_response.rbs | 42 +- .../top_up_delete_by_external_id_params.rbs | 13 +- .../credits/top_up_delete_params.rbs | 10 +- .../top_up_list_by_external_id_params.rbs | 15 +- .../top_up_list_by_external_id_response.rbs | 42 +- .../customers/credits/top_up_list_params.rbs | 15 +- .../credits/top_up_list_response.rbs | 42 +- sig/orb/models/dimensional_price_group.rbs | 18 +- .../dimensional_price_group_create_params.rbs | 21 +- .../dimensional_price_group_list_params.rbs | 15 +- ...imensional_price_group_retrieve_params.rbs | 7 +- sig/orb/models/dimensional_price_groups.rbs | 12 +- ...nsional_price_group_id_retrieve_params.rbs | 7 +- sig/orb/models/evaluate_price_group.rbs | 12 +- sig/orb/models/event_deprecate_params.rbs | 4 +- sig/orb/models/event_deprecate_response.rbs | 4 +- sig/orb/models/event_ingest_params.rbs | 34 +- sig/orb/models/event_ingest_response.rbs | 29 +- sig/orb/models/event_search_params.rbs | 14 +- sig/orb/models/event_search_response.rbs | 28 +- sig/orb/models/event_update_params.rbs | 18 +- sig/orb/models/event_update_response.rbs | 4 +- .../models/events/backfill_close_params.rbs | 6 +- .../models/events/backfill_close_response.rbs | 30 +- .../models/events/backfill_create_params.rbs | 24 +- .../events/backfill_create_response.rbs | 30 +- .../models/events/backfill_fetch_params.rbs | 6 +- .../models/events/backfill_fetch_response.rbs | 30 +- .../models/events/backfill_list_params.rbs | 14 +- .../models/events/backfill_list_response.rbs | 30 +- .../models/events/backfill_revert_params.rbs | 6 +- .../events/backfill_revert_response.rbs | 30 +- sig/orb/models/events/event_volumes.rbs | 16 +- sig/orb/models/events/volume_list_params.rbs | 18 +- sig/orb/models/invoice.rbs | 578 +-- sig/orb/models/invoice_create_params.rbs | 57 +- sig/orb/models/invoice_fetch_params.rbs | 4 +- .../models/invoice_fetch_upcoming_params.rbs | 9 +- .../invoice_fetch_upcoming_response.rbs | 606 +-- sig/orb/models/invoice_issue_params.rbs | 7 +- .../invoice_line_item_create_params.rbs | 22 +- .../invoice_line_item_create_response.rbs | 314 +- sig/orb/models/invoice_list_params.rbs | 46 +- sig/orb/models/invoice_mark_paid_params.rbs | 14 +- sig/orb/models/invoice_pay_params.rbs | 4 +- sig/orb/models/invoice_update_params.rbs | 10 +- sig/orb/models/invoice_void_params.rbs | 4 +- sig/orb/models/item.rbs | 26 +- sig/orb/models/item_create_params.rbs | 7 +- sig/orb/models/item_fetch_params.rbs | 4 +- sig/orb/models/item_list_params.rbs | 12 +- sig/orb/models/item_update_params.rbs | 25 +- sig/orb/models/metric_create_params.rbs | 18 +- sig/orb/models/metric_fetch_params.rbs | 4 +- sig/orb/models/metric_list_params.rbs | 20 +- sig/orb/models/metric_update_params.rbs | 10 +- sig/orb/models/pagination_metadata.rbs | 4 +- sig/orb/models/percentage_discount.rbs | 14 +- sig/orb/models/plan.rbs | 265 +- sig/orb/models/plan_create_params.rbs | 1802 +++---- sig/orb/models/plan_fetch_params.rbs | 4 +- sig/orb/models/plan_list_params.rbs | 22 +- sig/orb/models/plan_update_params.rbs | 12 +- .../plans/external_plan_id_fetch_params.rbs | 7 +- .../plans/external_plan_id_update_params.rbs | 15 +- sig/orb/models/price.rbs | 4147 ++++++----------- sig/orb/models/price_create_params.rbs | 280 +- sig/orb/models/price_evaluate_params.rbs | 20 +- sig/orb/models/price_evaluate_response.rbs | 4 +- sig/orb/models/price_fetch_params.rbs | 4 +- sig/orb/models/price_list_params.rbs | 12 +- sig/orb/models/price_update_params.rbs | 10 +- .../prices/external_price_id_fetch_params.rbs | 7 +- .../external_price_id_update_params.rbs | 13 +- sig/orb/models/subscription.rbs | 374 +- sig/orb/models/subscription_cancel_params.rbs | 16 +- .../models/subscription_cancel_response.rbs | 381 +- sig/orb/models/subscription_create_params.rbs | 4090 +++++++--------- .../models/subscription_create_response.rbs | 381 +- .../subscription_fetch_costs_params.rbs | 18 +- .../subscription_fetch_costs_response.rbs | 48 +- sig/orb/models/subscription_fetch_params.rbs | 6 +- .../subscription_fetch_schedule_params.rbs | 22 +- .../subscription_fetch_schedule_response.rbs | 28 +- .../subscription_fetch_usage_params.rbs | 30 +- sig/orb/models/subscription_list_params.rbs | 26 +- .../subscription_price_intervals_params.rbs | 2258 ++++----- .../subscription_price_intervals_response.rbs | 382 +- ...bscription_schedule_plan_change_params.rbs | 4081 ++++++---------- ...cription_schedule_plan_change_response.rbs | 382 +- .../subscription_trigger_phase_params.rbs | 14 +- .../subscription_trigger_phase_response.rbs | 382 +- ...ription_unschedule_cancellation_params.rbs | 7 +- ...ption_unschedule_cancellation_response.rbs | 382 +- ...dule_fixed_fee_quantity_updates_params.rbs | 10 +- ...le_fixed_fee_quantity_updates_response.rbs | 382 +- ...unschedule_pending_plan_changes_params.rbs | 7 +- ...schedule_pending_plan_changes_response.rbs | 382 +- ...ption_update_fixed_fee_quantity_params.rbs | 21 +- ...ion_update_fixed_fee_quantity_response.rbs | 382 +- sig/orb/models/subscription_update_params.rbs | 20 +- .../subscription_update_trial_params.rbs | 14 +- .../subscription_update_trial_response.rbs | 381 +- sig/orb/models/subscription_usage.rbs | 110 +- sig/orb/models/subscriptions.rbs | 10 +- sig/orb/models/top_level_ping_params.rbs | 4 +- sig/orb/models/top_level_ping_response.rbs | 4 +- sig/orb/models/trial_discount.rbs | 16 +- sig/orb/models/usage_discount.rbs | 14 +- sig/orb/page.rbs | 4 +- sig/orb/pooled_net_requester.rbs | 2 +- sig/orb/resources/alerts.rbs | 145 +- sig/orb/resources/coupons.rbs | 62 +- sig/orb/resources/coupons/subscriptions.rbs | 18 +- sig/orb/resources/credit_notes.rbs | 51 +- sig/orb/resources/customers.rbs | 225 +- .../customers/balance_transactions.rbs | 46 +- sig/orb/resources/customers/costs.rbs | 43 +- sig/orb/resources/customers/credits.rbs | 44 +- .../resources/customers/credits/ledger.rbs | 144 +- .../resources/customers/credits/top_ups.rbs | 128 +- .../resources/dimensional_price_groups.rbs | 50 +- .../external_dimensional_price_group_id.rbs | 14 +- sig/orb/resources/events.rbs | 68 +- sig/orb/resources/events/backfills.rbs | 82 +- sig/orb/resources/events/volume.rbs | 18 +- sig/orb/resources/invoice_line_items.rbs | 22 +- sig/orb/resources/invoices.rbs | 178 +- sig/orb/resources/items.rbs | 56 +- sig/orb/resources/metrics.rbs | 70 +- sig/orb/resources/plans.rbs | 80 +- sig/orb/resources/plans/external_plan_id.rbs | 32 +- sig/orb/resources/prices.rbs | 161 +- .../resources/prices/external_price_id.rbs | 30 +- sig/orb/resources/subscriptions.rbs | 461 +- sig/orb/resources/top_level.rbs | 10 +- sig/orb/util.rbs | 10 +- sorbet/config | 2 + 201 files changed, 11469 insertions(+), 18657 deletions(-) create mode 100644 .solargraph.yml create mode 100644 examples/.keep create mode 100644 sorbet/config diff --git a/.gitignore b/.gitignore index 1ef280e1..8b1228a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -.prism.log +*.gem .idea/ +.prism.log .ruby-lsp/ .yardoc/ -doc/ -sorbet/ Brewfile.lock.json bin/tapioca -*.gem +doc/ +sorbet/* +!/sorbet/config diff --git a/.rubocop.yml b/.rubocop.yml index 43fac48e..8cddf3f5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,7 +10,7 @@ AllCops: SuggestExtensions: false TargetRubyVersion: 3.1.0 -# Whether MFA is required or not should be left to the token configuration +# Whether MFA is required or not should be left to the token configuration. Gemspec/RequireMFA: Enabled: false @@ -72,6 +72,10 @@ Lint/EmptyInPattern: Exclude: - "test/**/*" +Lint/MissingCopEnableDirective: + Exclude: + - "examples/**/*.rb" + Lint/MissingSuper: Exclude: - "**/*.rbi" @@ -237,3 +241,8 @@ Style/StringLiterals: # Prefer explicit symbols for clarity; you can search for `:the_symbol`. Style/SymbolArray: EnforcedStyle: brackets + +# This option makes examples harder to read for ruby novices. +Style/SymbolProc: + Exclude: + - "examples/**/*.rb" diff --git a/.solargraph.yml b/.solargraph.yml new file mode 100644 index 00000000..74911df2 --- /dev/null +++ b/.solargraph.yml @@ -0,0 +1,10 @@ +--- +max_files: 0 +include: + - '*.gemspec' + - 'Rakefile' + - 'examples/**/*.rb' + - 'lib/**/*.rb' + - 'test/orb/test_helper.rb' +exclude: + - 'rbi/**/*' diff --git a/Rakefile b/Rakefile index 7fbac7a5..27e4b686 100644 --- a/Rakefile +++ b/Rakefile @@ -70,7 +70,7 @@ multitask(:steep) do end multitask(:sorbet) do - sh(*%w[srb typecheck -- .], chdir: "./rbi") + sh(*%w[srb typecheck]) end file("sorbet/tapioca") do diff --git a/examples/.keep b/examples/.keep new file mode 100644 index 00000000..d8c73e93 --- /dev/null +++ b/examples/.keep @@ -0,0 +1,4 @@ +File generated from our OpenAPI spec by Stainless. + +This directory can be used to store example files demonstrating usage of this SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index 1d823baa..159796a4 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -2,8 +2,6 @@ module Orb module Models - EventVolumes = T.type_alias { Events::EventVolumes } - module Events class EventVolumes < Orb::BaseModel sig { returns(T::Array[Orb::Models::Events::EventVolumes::Data]) } @@ -63,5 +61,7 @@ module Orb end end end + + EventVolumes = Events::EventVolumes end end diff --git a/sig/orb/base_client.rbs b/sig/orb/base_client.rbs index 517d6692..e87f1342 100644 --- a/sig/orb/base_client.rbs +++ b/sig/orb/base_client.rbs @@ -53,14 +53,14 @@ module Orb def initialize: ( base_url: String, - timeout: Float, - max_retries: Integer, - initial_retry_delay: Float, - max_retry_delay: Float, - headers: ::Hash[String, (String + ?timeout: Float, + ?max_retries: Integer, + ?initial_retry_delay: Float, + ?max_retry_delay: Float, + ?headers: ::Hash[String, (String | Integer | ::Array[(String | Integer)?])?], - idempotency_header: String? + ?idempotency_header: String? ) -> void private def auth_headers: -> ::Hash[String, String] @@ -88,16 +88,16 @@ module Orb ( Symbol method, String | ::Array[String] path, - query: ::Hash[String, (::Array[String] | String)?]?, - headers: ::Hash[String, (String + ?query: ::Hash[String, (::Array[String] | String)?]?, + ?headers: ::Hash[String, (String | Integer | ::Array[(String | Integer)?])?]?, - body: top?, - unwrap: Symbol?, - page: Class?, - stream: Class?, - model: Orb::Converter::input?, - options: Orb::request_opts? + ?body: top?, + ?unwrap: Symbol?, + ?page: Class?, + ?stream: Class?, + ?model: Orb::Converter::input?, + ?options: Orb::request_opts? ) -> top | (Orb::BaseClient::request_components req) -> top diff --git a/sig/orb/client.rbs b/sig/orb/client.rbs index 5607ce56..e6da014c 100644 --- a/sig/orb/client.rbs +++ b/sig/orb/client.rbs @@ -41,13 +41,13 @@ module Orb private def auth_headers: -> ::Hash[String, String] def initialize: ( - base_url: String?, - api_key: String?, - max_retries: Integer, - timeout: Float, - initial_retry_delay: Float, - max_retry_delay: Float, - idempotency_header: String + ?base_url: String?, + ?api_key: String?, + ?max_retries: Integer, + ?timeout: Float, + ?initial_retry_delay: Float, + ?max_retry_delay: Float, + ?idempotency_header: String ) -> void end end diff --git a/sig/orb/errors.rbs b/sig/orb/errors.rbs index 74fa9d68..b12bd045 100644 --- a/sig/orb/errors.rbs +++ b/sig/orb/errors.rbs @@ -15,33 +15,33 @@ module Orb def initialize: ( url: URI::Generic, - status: Integer?, - body: Object?, - request: nil, - response: nil, - message: String? + ?status: Integer?, + ?body: Object?, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end class APIConnectionError < Orb::APIError def initialize: ( url: URI::Generic, - status: nil, - body: nil, - request: nil, - response: nil, - message: String? + ?status: nil, + ?body: nil, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end class APITimeoutError < Orb::APIConnectionError def initialize: ( url: URI::Generic, - status: nil, - body: nil, - request: nil, - response: nil, - message: String? + ?status: nil, + ?body: nil, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end @@ -52,7 +52,7 @@ module Orb body: Object?, request: nil, response: nil, - message: String? + ?message: String? ) -> instance def initialize: ( @@ -61,7 +61,7 @@ module Orb body: Object?, request: nil, response: nil, - message: String? + ?message: String? ) -> void end diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 4d4f535c..27172e3b 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -35,20 +35,18 @@ module Orb attr_accessor type: Orb::Models::Alert::type_ - def initialize: - ( - id: String, - created_at: Time, - currency: String?, - customer: Orb::Models::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_ - ) -> void - | (?Orb::Models::alert | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + currency: String?, + customer: Orb::Models::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_ + ) -> void def to_hash: -> Orb::Models::alert @@ -59,9 +57,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::Alert::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Alert::customer end @@ -71,9 +67,7 @@ module Orb class Metric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Alert::metric | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Alert::metric end @@ -95,14 +89,12 @@ module Orb attr_accessor plan_version: String - def initialize: - ( - id: String?, - external_plan_id: String?, - name: String?, - plan_version: String - ) -> void - | (?Orb::Models::Alert::plan | Orb::BaseModel data) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String?, + plan_version: String + ) -> void def to_hash: -> Orb::Models::Alert::plan end @@ -112,9 +104,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Alert::subscription | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Alert::subscription end @@ -124,9 +114,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | (?Orb::Models::Alert::threshold | Orb::BaseModel data) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::Alert::threshold end diff --git a/sig/orb/models/alert_create_for_customer_params.rbs b/sig/orb/models/alert_create_for_customer_params.rbs index ed968995..34ea4d51 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -18,16 +18,12 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? - def initialize: - ( - currency: String, - type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_customer_params | Orb::BaseModel data - ) -> void + def initialize: ( + currency: String, + type: Orb::Models::AlertCreateForCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_create_for_customer_params @@ -49,12 +45,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForCustomerParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForCustomerParams::threshold 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 3f04d51b..c0b2bbe1 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -18,17 +18,12 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? - def initialize: - ( - currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_external_customer_params - | Orb::BaseModel data - ) -> void + def initialize: ( + currency: String, + type: Orb::Models::AlertCreateForExternalCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_create_for_external_customer_params @@ -50,12 +45,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForExternalCustomerParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForExternalCustomerParams::threshold end diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index dac4a9f0..70d31ce3 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -18,17 +18,12 @@ module Orb attr_accessor metric_id: String? - def initialize: - ( - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Orb::Models::AlertCreateForSubscriptionParams::type_, - metric_id: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_subscription_params - | Orb::BaseModel data - ) -> void + def initialize: ( + thresholds: ::Array[Orb::Models::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 @@ -37,12 +32,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForSubscriptionParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForSubscriptionParams::threshold end diff --git a/sig/orb/models/alert_disable_params.rbs b/sig/orb/models/alert_disable_params.rbs index 5d1aea20..a3e5f77c 100644 --- a/sig/orb/models/alert_disable_params.rbs +++ b/sig/orb/models/alert_disable_params.rbs @@ -9,9 +9,10 @@ module Orb attr_accessor subscription_id: String? - def initialize: - (subscription_id: String?, request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_disable_params | Orb::BaseModel data) -> void + def initialize: ( + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_disable_params end diff --git a/sig/orb/models/alert_enable_params.rbs b/sig/orb/models/alert_enable_params.rbs index f04d4537..6e3caf55 100644 --- a/sig/orb/models/alert_enable_params.rbs +++ b/sig/orb/models/alert_enable_params.rbs @@ -9,9 +9,10 @@ module Orb attr_accessor subscription_id: String? - def initialize: - (subscription_id: String?, request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_enable_params | Orb::BaseModel data) -> void + def initialize: ( + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_enable_params end diff --git a/sig/orb/models/alert_list_params.rbs b/sig/orb/models/alert_list_params.rbs index d86b5601..8ce96201 100644 --- a/sig/orb/models/alert_list_params.rbs +++ b/sig/orb/models/alert_list_params.rbs @@ -38,20 +38,18 @@ module Orb attr_accessor subscription_id: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: String?, - external_customer_id: String?, - limit: Integer, - subscription_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::alert_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: String?, + ?external_customer_id: String?, + ?limit: Integer, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_list_params end diff --git a/sig/orb/models/alert_retrieve_params.rbs b/sig/orb/models/alert_retrieve_params.rbs index b77c935f..13aa15b5 100644 --- a/sig/orb/models/alert_retrieve_params.rbs +++ b/sig/orb/models/alert_retrieve_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_retrieve_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::alert_retrieve_params end diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index 04905921..1f120b52 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -10,12 +10,10 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] - def initialize: - ( - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::alert_update_params | Orb::BaseModel data) -> void + def initialize: ( + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_update_params @@ -24,11 +22,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertUpdateParams::threshold | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertUpdateParams::threshold end diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 87e626d4..32c27d33 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -17,14 +17,12 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::AmountDiscount::discount_type, - reason: String? - ) -> void - | (?Orb::Models::amount_discount | Orb::BaseModel data) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::AmountDiscount::discount_type, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::amount_discount diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index 61d1c789..6541c7be 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -23,16 +23,14 @@ module Orb attr_accessor status: Orb::Models::BillableMetric::status - def initialize: - ( - id: String, - description: String?, - item: Orb::Models::Item, - metadata: ::Hash[Symbol, String], - name: String, - status: Orb::Models::BillableMetric::status - ) -> void - | (?Orb::Models::billable_metric | Orb::BaseModel data) -> void + def initialize: ( + id: String, + description: String?, + item: Orb::Models::Item, + metadata: ::Hash[Symbol, String], + name: String, + status: Orb::Models::BillableMetric::status + ) -> void def to_hash: -> Orb::Models::billable_metric diff --git a/sig/orb/models/coupon.rbs b/sig/orb/models/coupon.rbs index e58785e8..25b98546 100644 --- a/sig/orb/models/coupon.rbs +++ b/sig/orb/models/coupon.rbs @@ -26,17 +26,15 @@ module Orb attr_accessor times_redeemed: Integer - def initialize: - ( - id: String, - archived_at: Time?, - discount: Orb::Models::Coupon::discount, - duration_in_months: Integer?, - max_redemptions: Integer?, - redemption_code: String, - times_redeemed: Integer - ) -> void - | (?Orb::Models::coupon | Orb::BaseModel data) -> void + def initialize: ( + id: String, + archived_at: Time?, + discount: Orb::Models::Coupon::discount, + duration_in_months: Integer?, + max_redemptions: Integer?, + redemption_code: String, + times_redeemed: Integer + ) -> void def to_hash: -> Orb::Models::coupon diff --git a/sig/orb/models/coupon_archive_params.rbs b/sig/orb/models/coupon_archive_params.rbs index aa71c8cf..ed551585 100644 --- a/sig/orb/models/coupon_archive_params.rbs +++ b/sig/orb/models/coupon_archive_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::coupon_archive_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::coupon_archive_params end diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index edf8c7f3..90eedbf5 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -21,15 +21,13 @@ module Orb attr_accessor max_redemptions: Integer? - def initialize: - ( - discount: Orb::Models::CouponCreateParams::discount, - redemption_code: String, - duration_in_months: Integer?, - max_redemptions: Integer?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::coupon_create_params | Orb::BaseModel data) -> void + def initialize: ( + discount: Orb::Models::CouponCreateParams::discount, + redemption_code: String, + ?duration_in_months: Integer?, + ?max_redemptions: Integer?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::coupon_create_params @@ -46,12 +44,10 @@ module Orb attr_accessor percentage_discount: Float - def initialize: - (percentage_discount: Float, discount_type: :percentage) -> void - | ( - ?Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + percentage_discount: Float, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount end @@ -64,12 +60,10 @@ module Orb attr_accessor discount_type: :amount - def initialize: - (amount_discount: String, discount_type: :amount) -> void - | ( - ?Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount end diff --git a/sig/orb/models/coupon_fetch_params.rbs b/sig/orb/models/coupon_fetch_params.rbs index 209c91e5..0abbd80e 100644 --- a/sig/orb/models/coupon_fetch_params.rbs +++ b/sig/orb/models/coupon_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::coupon_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::coupon_fetch_params end diff --git a/sig/orb/models/coupon_list_params.rbs b/sig/orb/models/coupon_list_params.rbs index c9525543..813ae6af 100644 --- a/sig/orb/models/coupon_list_params.rbs +++ b/sig/orb/models/coupon_list_params.rbs @@ -23,15 +23,13 @@ module Orb attr_accessor show_archived: bool? - def initialize: - ( - cursor: String?, - limit: Integer, - redemption_code: String?, - show_archived: bool?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::coupon_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?redemption_code: String?, + ?show_archived: bool?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::coupon_list_params end diff --git a/sig/orb/models/coupons/subscription_list_params.rbs b/sig/orb/models/coupons/subscription_list_params.rbs index 75d747fb..b0474e0d 100644 --- a/sig/orb/models/coupons/subscription_list_params.rbs +++ b/sig/orb/models/coupons/subscription_list_params.rbs @@ -14,16 +14,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Coupons::subscription_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Coupons::subscription_list_params end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 32ade134..9d852deb 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -57,26 +57,24 @@ module Orb ::Array[Orb::Models::CreditNote::Discount] ) -> ::Array[Orb::Models::CreditNote::Discount] - def initialize: - ( - id: String, - created_at: Time, - credit_note_number: String, - credit_note_pdf: String?, - customer: Orb::Models::CreditNote::Customer, - invoice_id: String, - line_items: ::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, - memo: String?, - minimum_amount_refunded: String?, - reason: Orb::Models::CreditNote::reason?, - subtotal: String, - total: String, - type: Orb::Models::CreditNote::type_, - voided_at: Time?, - discounts: ::Array[Orb::Models::CreditNote::Discount] - ) -> void - | (?Orb::Models::credit_note | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + credit_note_number: String, + credit_note_pdf: String?, + customer: Orb::Models::CreditNote::Customer, + invoice_id: String, + line_items: ::Array[Orb::Models::CreditNote::LineItem], + maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, + memo: String?, + minimum_amount_refunded: String?, + reason: Orb::Models::CreditNote::reason?, + subtotal: String, + total: String, + type: Orb::Models::CreditNote::type_, + voided_at: Time?, + ?discounts: ::Array[Orb::Models::CreditNote::Discount] + ) -> void def to_hash: -> Orb::Models::credit_note @@ -87,9 +85,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::CreditNote::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::CreditNote::customer end @@ -127,18 +123,16 @@ module Orb ::Array[Orb::Models::CreditNote::LineItem::Discount] ) -> ::Array[Orb::Models::CreditNote::LineItem::Discount] - def initialize: - ( - id: String, - amount: String, - item_id: String, - name: String, - quantity: Float?, - subtotal: String, - tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] - ) -> void - | (?Orb::Models::CreditNote::line_item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + amount: String, + item_id: String, + name: String, + quantity: Float?, + subtotal: String, + tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + ?discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] + ) -> void def to_hash: -> Orb::Models::CreditNote::line_item @@ -156,16 +150,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::CreditNote::LineItem::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::LineItem::tax_amount end @@ -196,19 +185,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_applied: String, - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, - percentage_discount: Float, - amount_discount: String?, - reason: String? - ) -> void - | ( - ?Orb::Models::CreditNote::LineItem::discount | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_applied: String, + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, + percentage_discount: Float, + ?amount_discount: String?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::LineItem::discount @@ -243,18 +228,13 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, - percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, - reason: String? - ) -> void - | ( - ?Orb::Models::CreditNote::maximum_amount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_applied: String, + discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, + percentage_discount: Float, + ?applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::maximum_amount_adjustment @@ -273,12 +253,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price end @@ -325,15 +300,13 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::discount_type, - percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, - reason: String? - ) -> void - | (?Orb::Models::CreditNote::discount | Orb::BaseModel data) -> void + def initialize: ( + amount_applied: String, + discount_type: Orb::Models::CreditNote::Discount::discount_type, + percentage_discount: Float, + ?applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::discount @@ -352,12 +325,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::CreditNote::Discount::applies_to_price - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::CreditNote::Discount::applies_to_price end diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index 77f15609..4ecaa2f1 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -18,16 +18,12 @@ module Orb attr_accessor reason: Orb::Models::CreditNoteCreateParams::reason? - def initialize: - ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: String?, - reason: Orb::Models::CreditNoteCreateParams::reason?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::credit_note_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + ?memo: String?, + ?reason: Orb::Models::CreditNoteCreateParams::reason?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::credit_note_create_params @@ -38,12 +34,7 @@ module Orb attr_accessor invoice_line_item_id: String - def initialize: - (amount: String, invoice_line_item_id: String) -> void - | ( - ?Orb::Models::CreditNoteCreateParams::line_item - | Orb::BaseModel data - ) -> void + def initialize: (amount: String, invoice_line_item_id: String) -> void def to_hash: -> Orb::Models::CreditNoteCreateParams::line_item end diff --git a/sig/orb/models/credit_note_fetch_params.rbs b/sig/orb/models/credit_note_fetch_params.rbs index 1e87972a..02c60f8b 100644 --- a/sig/orb/models/credit_note_fetch_params.rbs +++ b/sig/orb/models/credit_note_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::credit_note_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::credit_note_fetch_params end diff --git a/sig/orb/models/credit_note_list_params.rbs b/sig/orb/models/credit_note_list_params.rbs index 98d07a01..7dc52517 100644 --- a/sig/orb/models/credit_note_list_params.rbs +++ b/sig/orb/models/credit_note_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::credit_note_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::credit_note_list_params end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 5be47fb4..9ee9f350 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -71,32 +71,30 @@ module Orb attr_accessor reporting_configuration: Orb::Models::Customer::ReportingConfiguration? - def initialize: - ( - id: String, - additional_emails: ::Array[String], - auto_collection: bool, - balance: String, - billing_address: Orb::Models::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, - metadata: ::Hash[Symbol, String], - name: String, - payment_provider: Orb::Models::Customer::payment_provider?, - payment_provider_id: String?, - portal_url: String?, - shipping_address: Orb::Models::Customer::ShippingAddress?, - tax_id: Orb::Models::Customer::TaxID?, - timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration? - ) -> void - | (?Orb::Models::customer | Orb::BaseModel data) -> void + def initialize: ( + id: String, + additional_emails: ::Array[String], + auto_collection: bool, + balance: String, + billing_address: Orb::Models::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, + metadata: ::Hash[Symbol, String], + name: String, + payment_provider: Orb::Models::Customer::payment_provider?, + payment_provider_id: String?, + portal_url: String?, + shipping_address: Orb::Models::Customer::ShippingAddress?, + tax_id: Orb::Models::Customer::TaxID?, + timezone: String, + ?accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, + ?reporting_configuration: Orb::Models::Customer::ReportingConfiguration? + ) -> void def to_hash: -> Orb::Models::customer @@ -123,18 +121,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Customer::billing_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Customer::billing_address end @@ -150,12 +144,10 @@ module Orb attr_accessor parent: Orb::Models::Customer::Hierarchy::Parent? - def initialize: - ( - children: ::Array[Orb::Models::Customer::Hierarchy::Child], - parent: Orb::Models::Customer::Hierarchy::Parent? - ) -> void - | (?Orb::Models::Customer::hierarchy | Orb::BaseModel data) -> void + def initialize: ( + children: ::Array[Orb::Models::Customer::Hierarchy::Child], + parent: Orb::Models::Customer::Hierarchy::Parent? + ) -> void def to_hash: -> Orb::Models::Customer::hierarchy @@ -166,11 +158,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customer::Hierarchy::child | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Customer::Hierarchy::child end @@ -182,11 +170,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customer::Hierarchy::parent | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Customer::Hierarchy::parent end @@ -228,18 +212,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Customer::shipping_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Customer::shipping_address end @@ -258,13 +238,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::Customer::TaxID::country, - type: Orb::Models::Customer::TaxID::type_, - value: String - ) -> void - | (?Orb::Models::Customer::tax_id | Orb::BaseModel data) -> void + def initialize: ( + country: Orb::Models::Customer::TaxID::country, + type: Orb::Models::Customer::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::Customer::tax_id @@ -592,15 +570,10 @@ module Orb attr_accessor excluded: bool - def initialize: - ( - accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], - excluded: bool - ) -> void - | ( - ?Orb::Models::Customer::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + excluded: bool + ) -> void def to_hash: -> Orb::Models::Customer::accounting_sync_configuration @@ -615,15 +588,10 @@ module Orb attr_accessor provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type - def initialize: - ( - external_provider_id: String?, - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type - ) -> void - | ( - ?Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String?, + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type + ) -> void def to_hash: -> Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider @@ -643,12 +611,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::Customer::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::Customer::reporting_configuration end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index b4d1c831..bacc378f 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -63,29 +63,27 @@ module Orb attr_accessor timezone: String? - def initialize: - ( - email: String, - name: String, - accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, - currency: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - tax_id: Orb::Models::CustomerCreateParams::TaxID?, - timezone: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_create_params | Orb::BaseModel data) -> void + def initialize: ( + email: String, + name: String, + ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?currency: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?timezone: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_create_params @@ -100,15 +98,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::accounting_sync_configuration @@ -120,12 +113,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider end @@ -154,19 +145,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::billing_address end @@ -181,14 +167,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::hierarchy | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::hierarchy end @@ -211,12 +193,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerCreateParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerCreateParams::reporting_configuration end @@ -244,19 +221,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::shipping_address end @@ -280,16 +252,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration end @@ -302,12 +269,7 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration end @@ -329,15 +291,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerCreateParams::TaxID::country, - type: Orb::Models::CustomerCreateParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerCreateParams::TaxID::country, + type: Orb::Models::CustomerCreateParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::tax_id diff --git a/sig/orb/models/customer_delete_params.rbs b/sig/orb/models/customer_delete_params.rbs index 0a58dae8..df38d7fe 100644 --- a/sig/orb/models/customer_delete_params.rbs +++ b/sig/orb/models/customer_delete_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::customer_delete_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_delete_params 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 39005200..4ba9cb77 100644 --- a/sig/orb/models/customer_fetch_by_external_id_params.rbs +++ b/sig/orb/models/customer_fetch_by_external_id_params.rbs @@ -6,12 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_fetch_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_fetch_by_external_id_params end diff --git a/sig/orb/models/customer_fetch_params.rbs b/sig/orb/models/customer_fetch_params.rbs index 4b37f6ba..99450116 100644 --- a/sig/orb/models/customer_fetch_params.rbs +++ b/sig/orb/models/customer_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::customer_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_fetch_params end diff --git a/sig/orb/models/customer_list_params.rbs b/sig/orb/models/customer_list_params.rbs index 194cb85e..876e905d 100644 --- a/sig/orb/models/customer_list_params.rbs +++ b/sig/orb/models/customer_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_list_params 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 a991c284..f02fa64c 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 @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params - | Orb::BaseModel data - ) -> void + 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 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 73a28957..9a1b1243 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 @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_sync_payment_methods_from_gateway_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_params 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 bea0dca1..f310f150 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -60,31 +60,26 @@ module Orb attr_accessor tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID? - def initialize: - ( - accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::customer_update_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_update_by_external_id_params @@ -99,15 +94,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration @@ -119,12 +109,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider end @@ -153,19 +141,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::billing_address end @@ -180,15 +163,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::hierarchy - | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::hierarchy end @@ -211,12 +189,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration end @@ -244,19 +217,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::shipping_address end @@ -280,16 +248,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration end @@ -302,12 +265,7 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration end @@ -329,16 +287,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::tax_id - | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::tax_id diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index b8171c03..c7d59f88 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -60,28 +60,26 @@ module Orb attr_accessor tax_id: Orb::Models::CustomerUpdateParams::TaxID? - def initialize: - ( - accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateParams::TaxID?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_update_params @@ -96,15 +94,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::accounting_sync_configuration @@ -116,12 +109,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider end @@ -150,19 +141,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::billing_address end @@ -177,14 +163,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::hierarchy | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::hierarchy end @@ -207,12 +189,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerUpdateParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::reporting_configuration end @@ -240,19 +217,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::shipping_address end @@ -276,16 +248,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration end @@ -298,12 +265,7 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration end @@ -325,15 +287,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerUpdateParams::TaxID::country, - type: Orb::Models::CustomerUpdateParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerUpdateParams::TaxID::country, + type: Orb::Models::CustomerUpdateParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::tax_id diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index 87be227d..725e32e7 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -19,17 +19,12 @@ module Orb attr_accessor description: String? - def initialize: - ( - amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, - description: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, + ?description: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_create_params diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index d664fddd..f177c26f 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -36,23 +36,18 @@ module Orb attr_accessor type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ - def initialize: - ( - id: String, - action: Orb::Models::Customers::BalanceTransactionCreateResponse::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice?, - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_create_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice?, + starting_balance: String, + type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_create_response @@ -86,12 +81,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note end @@ -101,12 +91,7 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionCreateResponse::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::invoice end diff --git a/sig/orb/models/customers/balance_transaction_list_params.rbs b/sig/orb/models/customers/balance_transaction_list_params.rbs index aaec01a8..4906ec62 100644 --- a/sig/orb/models/customers/balance_transaction_list_params.rbs +++ b/sig/orb/models/customers/balance_transaction_list_params.rbs @@ -30,20 +30,15 @@ module Orb attr_accessor operation_time_lte: Time? - def initialize: - ( - cursor: String?, - limit: Integer, - operation_time_gt: Time?, - operation_time_gte: Time?, - operation_time_lt: Time?, - operation_time_lte: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?operation_time_gt: Time?, + ?operation_time_gte: Time?, + ?operation_time_lt: Time?, + ?operation_time_lte: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_list_params end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 3300dc9a..0205d846 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -36,23 +36,18 @@ module Orb attr_accessor type: Orb::Models::Customers::BalanceTransactionListResponse::type_ - def initialize: - ( - id: String, - action: Orb::Models::Customers::BalanceTransactionListResponse::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Customers::BalanceTransactionListResponse::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Customers::BalanceTransactionListResponse::Invoice?, - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionListResponse::type_ - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_list_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Customers::BalanceTransactionListResponse::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Customers::BalanceTransactionListResponse::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Customers::BalanceTransactionListResponse::Invoice?, + starting_balance: String, + type: Orb::Models::Customers::BalanceTransactionListResponse::type_ + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_list_response @@ -86,12 +81,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionListResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::credit_note end @@ -101,12 +91,7 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionListResponse::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::invoice end diff --git a/sig/orb/models/customers/cost_list_by_external_id_params.rbs b/sig/orb/models/customers/cost_list_by_external_id_params.rbs index 466574a9..4ddf2a88 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 @@ -22,18 +22,13 @@ module Orb attr_accessor view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::cost_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_params 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 02812deb..942d38c0 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 @@ -9,14 +9,9 @@ module Orb class CostListByExternalIDResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] - ) -> void - | ( - ?Orb::Models::Customers::cost_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_response @@ -40,18 +35,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::Customers::CostListByExternalIDResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::data @@ -75,18 +65,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost end diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 70d78545..72d86785 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -22,17 +22,13 @@ module Orb attr_accessor view_mode: Orb::Models::Customers::CostListParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::cost_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_params diff --git a/sig/orb/models/customers/cost_list_response.rbs b/sig/orb/models/customers/cost_list_response.rbs index b8069b16..b9d486cd 100644 --- a/sig/orb/models/customers/cost_list_response.rbs +++ b/sig/orb/models/customers/cost_list_response.rbs @@ -7,13 +7,9 @@ module Orb class CostListResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Customers::CostListResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::Customers::CostListResponse::Data] - ) -> void - | ( - ?Orb::Models::Customers::cost_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::Customers::CostListResponse::Data] + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_response @@ -37,18 +33,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::Customers::CostListResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::Customers::CostListResponse::data @@ -72,18 +63,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::Customers::CostListResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::Customers::CostListResponse::Data::per_price_cost 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 5b5825f6..1db24044 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 @@ -26,18 +26,13 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::credit_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_params 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 03447192..bc2c8e3e 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 @@ -27,20 +27,15 @@ module Orb attr_accessor status: Orb::Models::Customers::CreditListByExternalIDResponse::status - def initialize: - ( - id: String, - balance: Float, - effective_date: Time?, - expiry_date: Time?, - maximum_initial_balance: Float?, - per_unit_cost_basis: String?, - status: Orb::Models::Customers::CreditListByExternalIDResponse::status - ) -> void - | ( - ?Orb::Models::Customers::credit_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + balance: Float, + effective_date: Time?, + expiry_date: Time?, + maximum_initial_balance: Float?, + per_unit_cost_basis: String?, + status: Orb::Models::Customers::CreditListByExternalIDResponse::status + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_response diff --git a/sig/orb/models/customers/credit_list_params.rbs b/sig/orb/models/customers/credit_list_params.rbs index 919cc5ed..8da8aa08 100644 --- a/sig/orb/models/customers/credit_list_params.rbs +++ b/sig/orb/models/customers/credit_list_params.rbs @@ -26,17 +26,13 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::credit_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_params end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index 29e70e1f..8f0390f5 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -27,19 +27,15 @@ module Orb attr_accessor status: Orb::Models::Customers::CreditListResponse::status - def initialize: - ( - id: String, - balance: Float, - effective_date: Time?, - expiry_date: Time?, - maximum_initial_balance: Float?, - per_unit_cost_basis: String?, - status: Orb::Models::Customers::CreditListResponse::status - ) -> void - | ( - ?Orb::Models::Customers::credit_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + balance: Float, + effective_date: Time?, + expiry_date: Time?, + maximum_initial_balance: Float?, + per_unit_cost_basis: String?, + status: Orb::Models::Customers::CreditListResponse::status + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_response 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 805ee503..ccdc89d5 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 @@ -47,26 +47,21 @@ module Orb attr_accessor void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason? - def initialize: - ( - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::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 - | ( - ?Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::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 @@ -97,17 +92,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs index cef04598..e31d93d6 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 @@ -56,26 +56,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry @@ -89,16 +84,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block end @@ -110,12 +100,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer end @@ -183,29 +171,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry @@ -219,16 +202,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block end @@ -240,12 +218,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer end @@ -307,27 +283,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry @@ -341,16 +312,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,12 +328,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer end @@ -426,26 +390,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry @@ -459,16 +418,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,12 +434,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end @@ -550,28 +502,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry @@ -585,16 +532,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block end @@ -606,12 +548,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer end @@ -679,29 +619,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry @@ -715,16 +650,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,12 +666,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer end @@ -800,26 +728,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry @@ -833,16 +756,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block end @@ -854,12 +772,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer 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 27071f6f..9dbf83bc 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -47,26 +47,21 @@ module Orb attr_accessor void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason? - def initialize: - ( - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::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 - | ( - ?Orb::Models::Customers::Credits::ledger_create_entry_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::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 @@ -97,17 +92,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs index 90849348..987efa48 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -56,26 +56,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry @@ -89,16 +84,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block end @@ -110,12 +100,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer end @@ -183,29 +171,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry @@ -219,16 +202,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block end @@ -240,12 +218,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer end @@ -307,27 +283,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry @@ -341,16 +312,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,12 +328,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer end @@ -426,26 +390,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry @@ -459,16 +418,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,12 +434,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer end @@ -550,28 +502,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry @@ -585,16 +532,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block end @@ -606,12 +548,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer end @@ -679,29 +619,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry @@ -715,16 +650,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,12 +666,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer end @@ -800,26 +728,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry @@ -833,16 +756,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block end @@ -854,12 +772,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer 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 56516fed..fa19152c 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 @@ -43,24 +43,19 @@ module Orb attr_accessor minimum_amount: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_list_by_external_id_params 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 9e1ae3d8..6d64d5f8 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 @@ -56,26 +56,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry @@ -89,16 +84,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block end @@ -110,12 +100,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer end @@ -183,29 +171,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry @@ -219,16 +202,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block end @@ -240,12 +218,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer end @@ -307,27 +283,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry @@ -341,16 +312,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,12 +328,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer end @@ -426,26 +390,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry @@ -459,16 +418,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,12 +434,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end @@ -550,28 +502,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry @@ -585,16 +532,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block end @@ -606,12 +548,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer end @@ -679,29 +619,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry @@ -715,16 +650,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,12 +666,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer end @@ -800,26 +728,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry @@ -833,16 +756,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block end @@ -854,12 +772,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer end diff --git a/sig/orb/models/customers/credits/ledger_list_params.rbs b/sig/orb/models/customers/credits/ledger_list_params.rbs index a8c1ea50..cd13ab6a 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -43,24 +43,19 @@ module Orb attr_accessor minimum_amount: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_list_params diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index 322bf5f2..6530740a 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -56,26 +56,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry @@ -89,16 +84,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block end @@ -110,12 +100,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer end @@ -183,29 +171,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry @@ -219,16 +202,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block end @@ -240,12 +218,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer end @@ -307,27 +283,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry @@ -341,16 +312,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,12 +328,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer end @@ -426,26 +390,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry @@ -459,16 +418,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,12 +434,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer end @@ -550,28 +502,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry @@ -585,16 +532,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block end @@ -606,12 +548,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer end @@ -679,29 +619,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry @@ -715,16 +650,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,12 +666,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer end @@ -800,26 +728,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, - description: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + description: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry @@ -833,16 +756,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block end @@ -854,12 +772,10 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer 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 ee49dd67..fb85415b 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 @@ -35,22 +35,17 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit? - def initialize: - ( - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_params @@ -73,17 +68,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings end diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs index e5583d6b..66a8262c 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 @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?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 @@ -68,17 +63,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings end diff --git a/sig/orb/models/customers/credits/top_up_create_params.rbs b/sig/orb/models/customers/credits/top_up_create_params.rbs index 57fc8b45..2d58e952 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -35,22 +35,17 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit? - def initialize: - ( - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_params @@ -73,17 +68,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings end diff --git a/sig/orb/models/customers/credits/top_up_create_response.rbs b/sig/orb/models/customers/credits/top_up_create_response.rbs index d41e64d8..a8b6969a 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_response @@ -68,17 +63,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings end 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 3754c1b7..58da5918 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 @@ -11,15 +11,10 @@ module Orb attr_accessor external_customer_id: String - def initialize: - ( - external_customer_id: String, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_delete_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + 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 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 3ffdbef2..76c30b7d 100644 --- a/sig/orb/models/customers/credits/top_up_delete_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_params.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor customer_id: String - def initialize: - (customer_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_delete_params - | Orb::BaseModel data - ) -> void + def initialize: ( + customer_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_params 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 95589ad0..2d1ffdda 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 @@ -15,16 +15,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_params 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 6b16b132..070a25ad 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 @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?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 @@ -68,17 +63,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings end 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 d6e3c41c..ade485c0 100644 --- a/sig/orb/models/customers/credits/top_up_list_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_params.rbs @@ -15,16 +15,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_params 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 e6fc16a2..2d95460f 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_response @@ -68,17 +63,12 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings end diff --git a/sig/orb/models/dimensional_price_group.rbs b/sig/orb/models/dimensional_price_group.rbs index 23ef1e3a..e0c04700 100644 --- a/sig/orb/models/dimensional_price_group.rbs +++ b/sig/orb/models/dimensional_price_group.rbs @@ -23,16 +23,14 @@ module Orb attr_accessor name: String - def initialize: - ( - id: String, - billable_metric_id: String, - dimensions: ::Array[String], - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String], - name: String - ) -> void - | (?Orb::Models::dimensional_price_group | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric_id: String, + dimensions: ::Array[String], + external_dimensional_price_group_id: String?, + metadata: ::Hash[Symbol, String], + name: String + ) -> void def to_hash: -> Orb::Models::dimensional_price_group end diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index 494c7f72..0fb069d7 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -24,19 +24,14 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - billable_metric_id: String, - dimensions: ::Array[String], - name: String, - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::dimensional_price_group_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + billable_metric_id: String, + dimensions: ::Array[String], + name: String, + ?external_dimensional_price_group_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::dimensional_price_group_create_params end diff --git a/sig/orb/models/dimensional_price_group_list_params.rbs b/sig/orb/models/dimensional_price_group_list_params.rbs index bbe8e39d..36d3c05e 100644 --- a/sig/orb/models/dimensional_price_group_list_params.rbs +++ b/sig/orb/models/dimensional_price_group_list_params.rbs @@ -13,16 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::dimensional_price_group_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::dimensional_price_group_list_params end diff --git a/sig/orb/models/dimensional_price_group_retrieve_params.rbs b/sig/orb/models/dimensional_price_group_retrieve_params.rbs index a0e943b5..8d4d903d 100644 --- a/sig/orb/models/dimensional_price_group_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_group_retrieve_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::dimensional_price_group_retrieve_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::dimensional_price_group_retrieve_params end diff --git a/sig/orb/models/dimensional_price_groups.rbs b/sig/orb/models/dimensional_price_groups.rbs index 68254693..f80e2d8a 100644 --- a/sig/orb/models/dimensional_price_groups.rbs +++ b/sig/orb/models/dimensional_price_groups.rbs @@ -11,14 +11,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata - def initialize: - ( - data: ::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata - ) -> void - | ( - ?Orb::Models::dimensional_price_groups_api | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::DimensionalPriceGroup], + pagination_metadata: Orb::Models::PaginationMetadata + ) -> void def to_hash: -> Orb::Models::dimensional_price_groups_api 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 f7d32b07..b45bb368 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 @@ -8,12 +8,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params end diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index 65015d88..ca77c1fc 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -14,13 +14,11 @@ module Orb attr_accessor quantity: Float - def initialize: - ( - amount: String, - grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], - quantity: Float - ) -> void - | (?Orb::Models::evaluate_price_group | Orb::BaseModel data) -> void + def initialize: ( + amount: String, + grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], + quantity: Float + ) -> void def to_hash: -> Orb::Models::evaluate_price_group diff --git a/sig/orb/models/event_deprecate_params.rbs b/sig/orb/models/event_deprecate_params.rbs index 51b19b96..9420c333 100644 --- a/sig/orb/models/event_deprecate_params.rbs +++ b/sig/orb/models/event_deprecate_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::event_deprecate_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::event_deprecate_params end diff --git a/sig/orb/models/event_deprecate_response.rbs b/sig/orb/models/event_deprecate_response.rbs index a416f93d..a663b957 100644 --- a/sig/orb/models/event_deprecate_response.rbs +++ b/sig/orb/models/event_deprecate_response.rbs @@ -5,9 +5,7 @@ module Orb class EventDeprecateResponse < Orb::BaseModel attr_accessor deprecated: String - def initialize: - (deprecated: String) -> void - | (?Orb::Models::event_deprecate_response | Orb::BaseModel data) -> void + def initialize: (deprecated: String) -> void def to_hash: -> Orb::Models::event_deprecate_response end diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 796bc83d..70233275 100644 --- a/sig/orb/models/event_ingest_params.rbs +++ b/sig/orb/models/event_ingest_params.rbs @@ -20,14 +20,12 @@ module Orb def debug=: (bool) -> bool - def initialize: - ( - events: ::Array[Orb::Models::EventIngestParams::Event], - backfill_id: String?, - debug: bool, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_ingest_params | Orb::BaseModel data) -> void + def initialize: ( + events: ::Array[Orb::Models::EventIngestParams::Event], + ?backfill_id: String?, + ?debug: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_ingest_params @@ -54,18 +52,14 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - ( - event_name: String, - idempotency_key: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String? - ) -> void - | ( - ?Orb::Models::EventIngestParams::event | Orb::BaseModel data - ) -> void + def initialize: ( + event_name: String, + idempotency_key: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::EventIngestParams::event end diff --git a/sig/orb/models/event_ingest_response.rbs b/sig/orb/models/event_ingest_response.rbs index ac01c9e5..0af1138c 100644 --- a/sig/orb/models/event_ingest_response.rbs +++ b/sig/orb/models/event_ingest_response.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor debug: Orb::Models::EventIngestResponse::Debug? - def initialize: - ( - validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: Orb::Models::EventIngestResponse::Debug? - ) -> void - | (?Orb::Models::event_ingest_response | Orb::BaseModel data) -> void + def initialize: ( + validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], + ?debug: Orb::Models::EventIngestResponse::Debug? + ) -> void def to_hash: -> Orb::Models::event_ingest_response @@ -28,12 +26,10 @@ module Orb attr_accessor validation_errors: ::Array[String] - def initialize: - (idempotency_key: String, validation_errors: ::Array[String]) -> void - | ( - ?Orb::Models::EventIngestResponse::validation_failed - | Orb::BaseModel data - ) -> void + def initialize: ( + idempotency_key: String, + validation_errors: ::Array[String] + ) -> void def to_hash: -> Orb::Models::EventIngestResponse::validation_failed end @@ -45,11 +41,10 @@ module Orb attr_accessor ingested: ::Array[String] - def initialize: - (duplicate: ::Array[String], ingested: ::Array[String]) -> void - | ( - ?Orb::Models::EventIngestResponse::debug | Orb::BaseModel data - ) -> void + def initialize: ( + duplicate: ::Array[String], + ingested: ::Array[String] + ) -> void def to_hash: -> Orb::Models::EventIngestResponse::debug end diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index 26052744..5cd98ac7 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -18,14 +18,12 @@ module Orb attr_accessor timeframe_start: Time? - def initialize: - ( - event_ids: ::Array[String], - timeframe_end: Time?, - timeframe_start: Time?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_search_params | Orb::BaseModel data) -> void + def initialize: ( + event_ids: ::Array[String], + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_search_params end diff --git a/sig/orb/models/event_search_response.rbs b/sig/orb/models/event_search_response.rbs index 2242d17f..ab562e41 100644 --- a/sig/orb/models/event_search_response.rbs +++ b/sig/orb/models/event_search_response.rbs @@ -6,9 +6,9 @@ module Orb class EventSearchResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::EventSearchResponse::Data] - def initialize: - (data: ::Array[Orb::Models::EventSearchResponse::Data]) -> void - | (?Orb::Models::event_search_response | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::EventSearchResponse::Data] + ) -> void def to_hash: -> Orb::Models::event_search_response @@ -38,19 +38,15 @@ module Orb attr_accessor timestamp: Time - def initialize: - ( - id: String, - customer_id: String?, - deprecated: bool, - event_name: String, - external_customer_id: String?, - properties: top, - timestamp: Time - ) -> void - | ( - ?Orb::Models::EventSearchResponse::data | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + customer_id: String?, + deprecated: bool, + event_name: String, + external_customer_id: String?, + properties: top, + timestamp: Time + ) -> void def to_hash: -> Orb::Models::EventSearchResponse::data end diff --git a/sig/orb/models/event_update_params.rbs b/sig/orb/models/event_update_params.rbs index f26a87fa..a68a97dc 100644 --- a/sig/orb/models/event_update_params.rbs +++ b/sig/orb/models/event_update_params.rbs @@ -24,16 +24,14 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - ( - event_name: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_update_params | Orb::BaseModel data) -> void + def initialize: ( + event_name: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_update_params end diff --git a/sig/orb/models/event_update_response.rbs b/sig/orb/models/event_update_response.rbs index 55955d7d..af02a57b 100644 --- a/sig/orb/models/event_update_response.rbs +++ b/sig/orb/models/event_update_response.rbs @@ -5,9 +5,7 @@ module Orb class EventUpdateResponse < Orb::BaseModel attr_accessor amended: String - def initialize: - (amended: String) -> void - | (?Orb::Models::event_update_response | Orb::BaseModel data) -> void + def initialize: (amended: String) -> void def to_hash: -> Orb::Models::event_update_response end diff --git a/sig/orb/models/events/backfill_close_params.rbs b/sig/orb/models/events/backfill_close_params.rbs index 577540e4..40305264 100644 --- a/sig/orb/models/events/backfill_close_params.rbs +++ b/sig/orb/models/events/backfill_close_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_close_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_close_params end diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index a964fe00..1899fbba 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillCloseResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_close_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillCloseResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_close_response diff --git a/sig/orb/models/events/backfill_create_params.rbs b/sig/orb/models/events/backfill_create_params.rbs index a94156be..799629df 100644 --- a/sig/orb/models/events/backfill_create_params.rbs +++ b/sig/orb/models/events/backfill_create_params.rbs @@ -33,20 +33,16 @@ module Orb def replace_existing_events=: (bool) -> bool - def initialize: - ( - timeframe_end: Time, - timeframe_start: Time, - close_time: Time?, - customer_id: String?, - deprecation_filter: String?, - external_customer_id: String?, - replace_existing_events: bool, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::backfill_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + timeframe_end: Time, + timeframe_start: Time, + ?close_time: Time?, + ?customer_id: String?, + ?deprecation_filter: String?, + ?external_customer_id: String?, + ?replace_existing_events: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::backfill_create_params end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index 1660a064..3459f861 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillCreateResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillCreateResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_create_response diff --git a/sig/orb/models/events/backfill_fetch_params.rbs b/sig/orb/models/events/backfill_fetch_params.rbs index e3bfbd9e..95998077 100644 --- a/sig/orb/models/events/backfill_fetch_params.rbs +++ b/sig/orb/models/events/backfill_fetch_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_fetch_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_fetch_params end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index f1f81b5b..0753c5c5 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillFetchResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_fetch_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillFetchResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_fetch_response diff --git a/sig/orb/models/events/backfill_list_params.rbs b/sig/orb/models/events/backfill_list_params.rbs index 54513f00..f1c9b9c4 100644 --- a/sig/orb/models/events/backfill_list_params.rbs +++ b/sig/orb/models/events/backfill_list_params.rbs @@ -14,15 +14,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::backfill_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::backfill_list_params end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index 751e66f8..37ff73a8 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillListResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillListResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_list_response diff --git a/sig/orb/models/events/backfill_revert_params.rbs b/sig/orb/models/events/backfill_revert_params.rbs index 7c141533..9329af9d 100644 --- a/sig/orb/models/events/backfill_revert_params.rbs +++ b/sig/orb/models/events/backfill_revert_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_revert_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_revert_params end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 85f5b7b3..067d6487 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillRevertResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_revert_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillRevertResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_revert_response diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index c7a6cfc9..28ec3b2e 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -10,9 +10,9 @@ module Orb class EventVolumes < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Events::EventVolumes::Data] - def initialize: - (data: ::Array[Orb::Models::Events::EventVolumes::Data]) -> void - | (?Orb::Models::Events::event_volumes | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::Events::EventVolumes::Data] + ) -> void def to_hash: -> Orb::Models::Events::event_volumes @@ -26,11 +26,11 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - (count: Integer, timeframe_end: Time, timeframe_start: Time) -> void - | ( - ?Orb::Models::Events::EventVolumes::data | Orb::BaseModel data - ) -> void + def initialize: ( + count: Integer, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::Events::EventVolumes::data end diff --git a/sig/orb/models/events/volume_list_params.rbs b/sig/orb/models/events/volume_list_params.rbs index 03e1b0ff..1b7a5f23 100644 --- a/sig/orb/models/events/volume_list_params.rbs +++ b/sig/orb/models/events/volume_list_params.rbs @@ -26,17 +26,13 @@ module Orb def timeframe_end=: (Time) -> Time - def initialize: - ( - timeframe_start: Time, - cursor: String?, - limit: Integer, - timeframe_end: Time, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::volume_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + timeframe_start: Time, + ?cursor: String?, + ?limit: Integer, + ?timeframe_end: Time, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::volume_list_params end diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index 25edd9b8..1a16a5c8 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -128,51 +128,49 @@ module Orb attr_accessor will_auto_issue: bool - def initialize: - ( - id: String, - amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress?, - created_at: Time, - credit_notes: ::Array[Orb::Models::Invoice::CreditNote], - currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, - discount: top, - discounts: ::Array[Orb::Models::invoice_level_discount], - due_date: Time?, - eligible_to_issue_at: Time?, - hosted_invoice_url: String?, - invoice_date: Time, - invoice_number: String, - invoice_pdf: String?, - invoice_source: Orb::Models::Invoice::invoice_source, - issue_failed_at: Time?, - issued_at: Time?, - line_items: ::Array[Orb::Models::Invoice::LineItem], - maximum: Orb::Models::Invoice::Maximum?, - maximum_amount: String?, - memo: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Invoice::Minimum?, - minimum_amount: String?, - paid_at: Time?, - payment_attempts: ::Array[Orb::Models::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?, - subtotal: String, - sync_failed_at: Time?, - total: String, - voided_at: Time?, - will_auto_issue: bool - ) -> void - | (?Orb::Models::invoice | Orb::BaseModel data) -> void + def initialize: ( + id: String, + amount_due: String, + auto_collection: Orb::Models::Invoice::AutoCollection, + billing_address: Orb::Models::Invoice::BillingAddress?, + created_at: Time, + credit_notes: ::Array[Orb::Models::Invoice::CreditNote], + currency: String, + customer: Orb::Models::Invoice::Customer, + customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_date: Time, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::Invoice::invoice_source, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::Models::Invoice::LineItem], + maximum: Orb::Models::Invoice::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Invoice::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::Models::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?, + subtotal: String, + sync_failed_at: Time?, + total: String, + voided_at: Time?, + will_auto_issue: bool + ) -> void def to_hash: -> Orb::Models::invoice @@ -193,16 +191,12 @@ module Orb attr_accessor previously_attempted_at: Time? - def initialize: - ( - enabled: bool?, - next_attempt_at: Time?, - num_attempts: Integer?, - previously_attempted_at: Time? - ) -> void - | ( - ?Orb::Models::Invoice::auto_collection | Orb::BaseModel data - ) -> void + def initialize: ( + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + ) -> void def to_hash: -> Orb::Models::Invoice::auto_collection end @@ -230,18 +224,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Invoice::billing_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Invoice::billing_address end @@ -272,17 +262,15 @@ module Orb attr_accessor voided_at: Time? - def initialize: - ( - id: String, - credit_note_number: String, - memo: String?, - reason: String, - total: String, - type: String, - voided_at: Time? - ) -> void - | (?Orb::Models::Invoice::credit_note | Orb::BaseModel data) -> void + def initialize: ( + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + ) -> void def to_hash: -> Orb::Models::Invoice::credit_note end @@ -294,9 +282,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::Invoice::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Invoice::customer end @@ -336,23 +322,18 @@ module Orb attr_accessor type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ - def initialize: - ( - id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, - starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ - ) -> void - | ( - ?Orb::Models::Invoice::customer_balance_transaction - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Invoice::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, + starting_balance: String, + type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ + ) -> void def to_hash: -> Orb::Models::Invoice::customer_balance_transaction @@ -386,12 +367,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Invoice::CustomerBalanceTransaction::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::credit_note end @@ -401,12 +377,7 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Invoice::CustomerBalanceTransaction::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::invoice end @@ -435,15 +406,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::Invoice::CustomerTaxID::country, - type: Orb::Models::Invoice::CustomerTaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::Invoice::customer_tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::Invoice::CustomerTaxID::country, + type: Orb::Models::Invoice::CustomerTaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::Invoice::customer_tax_id @@ -841,32 +808,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::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_amount: String?, - minimum: Orb::Models::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], - subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | (?Orb::Models::Invoice::line_item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::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_amount: String?, + minimum: Orb::Models::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], + subtotal: String, + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::Invoice::line_item @@ -904,20 +869,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment end @@ -948,20 +908,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment end @@ -992,20 +947,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment end @@ -1039,21 +989,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment end @@ -1084,20 +1029,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment end @@ -1113,14 +1053,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::maximum end @@ -1133,14 +1069,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::minimum end @@ -1174,19 +1106,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item @@ -1197,12 +1124,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping end @@ -1212,12 +1134,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end @@ -1246,19 +1163,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item @@ -1269,12 +1181,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping end @@ -1289,16 +1196,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config end @@ -1324,18 +1226,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item @@ -1346,12 +1243,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping end @@ -1374,15 +1266,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::tax_amount | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::tax_amount end @@ -1396,12 +1284,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | (?Orb::Models::Invoice::maximum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::maximum end @@ -1414,12 +1300,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | (?Orb::Models::Invoice::minimum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::minimum end @@ -1447,18 +1331,14 @@ module Orb attr_accessor succeeded: bool - def initialize: - ( - id: String, - amount: String, - created_at: Time, - payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, - payment_provider_id: String?, - succeeded: bool - ) -> void - | ( - ?Orb::Models::Invoice::payment_attempt | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + succeeded: bool + ) -> void def to_hash: -> Orb::Models::Invoice::payment_attempt @@ -1494,18 +1374,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Invoice::shipping_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Invoice::shipping_address end @@ -1527,9 +1403,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Invoice::subscription | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::subscription end diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index ee7149e0..2c4ba9d4 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -41,21 +41,19 @@ module Orb def will_auto_issue=: (bool) -> bool - def initialize: - ( - currency: String, - invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: String?, - discount: Orb::Models::discount?, - external_customer_id: String?, - memo: String?, - metadata: ::Hash[Symbol, String?]?, - will_auto_issue: bool, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_create_params | Orb::BaseModel data) -> void + def initialize: ( + currency: String, + invoice_date: Time, + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + ?customer_id: String?, + ?discount: Orb::Models::discount?, + ?external_customer_id: String?, + ?memo: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?will_auto_issue: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_create_params @@ -85,19 +83,15 @@ module Orb attr_accessor unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - def initialize: - ( - end_date: Date, - item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, - name: String, - quantity: Float, - start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - ) -> void - | ( - ?Orb::Models::InvoiceCreateParams::line_item | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Date, + item_id: String, + model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, + name: String, + quantity: Float, + start_date: Date, + unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + ) -> void def to_hash: -> Orb::Models::InvoiceCreateParams::line_item @@ -114,12 +108,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::InvoiceCreateParams::LineItem::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::InvoiceCreateParams::LineItem::unit_config end diff --git a/sig/orb/models/invoice_fetch_params.rbs b/sig/orb/models/invoice_fetch_params.rbs index 5cc201e8..773a7f9f 100644 --- a/sig/orb/models/invoice_fetch_params.rbs +++ b/sig/orb/models/invoice_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_fetch_params end diff --git a/sig/orb/models/invoice_fetch_upcoming_params.rbs b/sig/orb/models/invoice_fetch_upcoming_params.rbs index 08deb93a..6df7fa65 100644 --- a/sig/orb/models/invoice_fetch_upcoming_params.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_params.rbs @@ -9,11 +9,10 @@ module Orb attr_accessor subscription_id: String - def initialize: - (subscription_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::invoice_fetch_upcoming_params | Orb::BaseModel data - ) -> void + def initialize: ( + subscription_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_fetch_upcoming_params end diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index 65e45ad6..b9e30707 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -128,53 +128,49 @@ module Orb attr_accessor will_auto_issue: bool - def initialize: - ( - id: String, - amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, - created_at: Time, - credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], - currency: String, - customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, - discount: top, - discounts: ::Array[Orb::Models::invoice_level_discount], - due_date: Time?, - eligible_to_issue_at: Time?, - hosted_invoice_url: String?, - invoice_number: String, - invoice_pdf: String?, - invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, - issue_failed_at: Time?, - issued_at: Time?, - line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], - maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, - maximum_amount: String?, - memo: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, - minimum_amount: String?, - paid_at: Time?, - payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], - payment_failed_at: Time?, - payment_started_at: Time?, - scheduled_issue_at: Time?, - shipping_address: Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress?, - status: Orb::Models::InvoiceFetchUpcomingResponse::status, - subscription: Orb::Models::InvoiceFetchUpcomingResponse::Subscription?, - subtotal: String, - sync_failed_at: Time?, - target_date: Time, - total: String, - voided_at: Time?, - will_auto_issue: bool - ) -> void - | ( - ?Orb::Models::invoice_fetch_upcoming_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_due: String, + auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, + created_at: Time, + credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + currency: String, + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, + customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress?, + status: Orb::Models::InvoiceFetchUpcomingResponse::status, + subscription: Orb::Models::InvoiceFetchUpcomingResponse::Subscription?, + subtotal: String, + sync_failed_at: Time?, + target_date: Time, + total: String, + voided_at: Time?, + will_auto_issue: bool + ) -> void def to_hash: -> Orb::Models::invoice_fetch_upcoming_response @@ -195,17 +191,12 @@ module Orb attr_accessor previously_attempted_at: Time? - def initialize: - ( - enabled: bool?, - next_attempt_at: Time?, - num_attempts: Integer?, - previously_attempted_at: Time? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::auto_collection - | Orb::BaseModel data - ) -> void + def initialize: ( + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::auto_collection end @@ -233,19 +224,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::billing_address end @@ -276,20 +262,15 @@ module Orb attr_accessor voided_at: Time? - def initialize: - ( - id: String, - credit_note_number: String, - memo: String?, - reason: String, - total: String, - type: String, - voided_at: Time? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::credit_note end @@ -301,12 +282,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer - | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer end @@ -346,23 +322,18 @@ module Orb attr_accessor type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ - def initialize: - ( - id: String, - action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice?, - starting_balance: String, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice?, + starting_balance: String, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction @@ -396,12 +367,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note end @@ -411,12 +377,7 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice end @@ -445,16 +406,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id - | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id @@ -852,35 +808,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], - amount: String, - credits_applied: String, - discount: Orb::Models::discount?, - end_date: Time, - filter: String?, - grouping: String?, - maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::InvoiceFetchUpcomingResponse::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::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], - subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::InvoiceFetchUpcomingResponse::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::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item @@ -918,20 +869,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment end @@ -962,20 +908,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment end @@ -1006,20 +947,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment end @@ -1053,21 +989,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment end @@ -1098,20 +1029,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment end @@ -1127,15 +1053,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum end @@ -1148,15 +1069,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum end @@ -1190,19 +1106,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item @@ -1213,12 +1124,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping end @@ -1228,12 +1134,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end @@ -1262,19 +1163,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item @@ -1285,12 +1181,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping end @@ -1305,16 +1196,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config end @@ -1340,18 +1226,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item @@ -1362,12 +1243,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping end @@ -1390,16 +1266,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount end @@ -1413,15 +1284,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::maximum end @@ -1434,15 +1300,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::minimum end @@ -1470,19 +1331,14 @@ module Orb attr_accessor succeeded: bool - def initialize: - ( - id: String, - amount: String, - created_at: Time, - payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, - payment_provider_id: String?, - succeeded: bool - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + succeeded: bool + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt @@ -1518,19 +1374,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::shipping_address end @@ -1552,12 +1403,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::subscription - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::subscription end diff --git a/sig/orb/models/invoice_issue_params.rbs b/sig/orb/models/invoice_issue_params.rbs index 4001fd98..1dd89f33 100644 --- a/sig/orb/models/invoice_issue_params.rbs +++ b/sig/orb/models/invoice_issue_params.rbs @@ -10,9 +10,10 @@ module Orb def synchronous=: (bool) -> bool - def initialize: - (synchronous: bool, request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_issue_params | Orb::BaseModel data) -> void + def initialize: ( + ?synchronous: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_issue_params end diff --git a/sig/orb/models/invoice_line_item_create_params.rbs b/sig/orb/models/invoice_line_item_create_params.rbs index e38b9a5d..62c0a170 100644 --- a/sig/orb/models/invoice_line_item_create_params.rbs +++ b/sig/orb/models/invoice_line_item_create_params.rbs @@ -27,19 +27,15 @@ module Orb attr_accessor start_date: Date - def initialize: - ( - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::invoice_line_item_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_line_item_create_params end diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index a0b847b8..f9b516d3 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -71,34 +71,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], - amount: String, - credits_applied: String, - discount: Orb::Models::discount?, - end_date: Time, - filter: String?, - grouping: String?, - maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::InvoiceLineItemCreateResponse::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::InvoiceLineItemCreateResponse::sub_line_item], - subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::invoice_line_item_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::InvoiceLineItemCreateResponse::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::InvoiceLineItemCreateResponse::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::invoice_line_item_create_response @@ -136,20 +132,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment end @@ -180,20 +171,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment end @@ -224,20 +210,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment end @@ -271,21 +252,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment end @@ -316,20 +292,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment end @@ -345,15 +316,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::maximum end @@ -366,15 +332,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::minimum end @@ -408,19 +369,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item @@ -431,12 +387,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping end @@ -446,12 +397,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config end @@ -480,19 +426,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item @@ -503,12 +444,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping end @@ -523,16 +459,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config end @@ -558,18 +489,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item @@ -580,12 +506,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping end @@ -608,16 +529,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::tax_amount end diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index d44310d5..1b856ea7 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -68,30 +68,28 @@ module Orb attr_accessor subscription_id: String? - def initialize: - ( - amount: String?, - amount_gt: String?, - amount_lt: String?, - cursor: String?, - customer_id: String?, - date_type: Orb::Models::InvoiceListParams::date_type?, - due_date: Date?, - due_date_window: String?, - due_date_gt: Date?, - due_date_lt: Date?, - external_customer_id: String?, - invoice_date_gt: Time?, - invoice_date_gte: Time?, - invoice_date_lt: Time?, - invoice_date_lte: Time?, - is_recurring: bool?, - limit: Integer, - status: ::Array[Orb::Models::InvoiceListParams::status]?, - subscription_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?amount: String?, + ?amount_gt: String?, + ?amount_lt: String?, + ?cursor: String?, + ?customer_id: String?, + ?date_type: Orb::Models::InvoiceListParams::date_type?, + ?due_date: Date?, + ?due_date_window: String?, + ?due_date_gt: Date?, + ?due_date_lt: Date?, + ?external_customer_id: String?, + ?invoice_date_gt: Time?, + ?invoice_date_gte: Time?, + ?invoice_date_lt: Time?, + ?invoice_date_lte: Time?, + ?is_recurring: bool?, + ?limit: Integer, + ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_list_params diff --git a/sig/orb/models/invoice_mark_paid_params.rbs b/sig/orb/models/invoice_mark_paid_params.rbs index 3d52fc9a..101e1d9c 100644 --- a/sig/orb/models/invoice_mark_paid_params.rbs +++ b/sig/orb/models/invoice_mark_paid_params.rbs @@ -14,14 +14,12 @@ module Orb attr_accessor notes: String? - def initialize: - ( - payment_received_date: Date, - external_id: String?, - notes: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_mark_paid_params | Orb::BaseModel data) -> void + def initialize: ( + payment_received_date: Date, + ?external_id: String?, + ?notes: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_mark_paid_params end diff --git a/sig/orb/models/invoice_pay_params.rbs b/sig/orb/models/invoice_pay_params.rbs index 6c8f6a54..7d80b8a8 100644 --- a/sig/orb/models/invoice_pay_params.rbs +++ b/sig/orb/models/invoice_pay_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_pay_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_pay_params end diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index 14ff624a..2f7cbd9b 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_update_params end diff --git a/sig/orb/models/invoice_void_params.rbs b/sig/orb/models/invoice_void_params.rbs index e3be7b60..2d841232 100644 --- a/sig/orb/models/invoice_void_params.rbs +++ b/sig/orb/models/invoice_void_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_void_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_void_params end diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index d7ad1b56..51971ac1 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -17,14 +17,12 @@ module Orb attr_accessor name: String - def initialize: - ( - id: String, - created_at: Time, - external_connections: ::Array[Orb::Models::Item::ExternalConnection], - name: String - ) -> void - | (?Orb::Models::item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + external_connections: ::Array[Orb::Models::Item::ExternalConnection], + name: String + ) -> void def to_hash: -> Orb::Models::item @@ -39,14 +37,10 @@ module Orb attr_accessor external_entity_id: String - def initialize: - ( - external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, - external_entity_id: String - ) -> void - | ( - ?Orb::Models::Item::external_connection | Orb::BaseModel data - ) -> void + def initialize: ( + external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, + external_entity_id: String + ) -> void def to_hash: -> Orb::Models::Item::external_connection diff --git a/sig/orb/models/item_create_params.rbs b/sig/orb/models/item_create_params.rbs index 102a2610..4281f1e6 100644 --- a/sig/orb/models/item_create_params.rbs +++ b/sig/orb/models/item_create_params.rbs @@ -8,9 +8,10 @@ module Orb attr_accessor name: String - def initialize: - (name: String, request_options: Orb::request_opts) -> void - | (?Orb::Models::item_create_params | Orb::BaseModel data) -> void + def initialize: ( + name: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_create_params end diff --git a/sig/orb/models/item_fetch_params.rbs b/sig/orb/models/item_fetch_params.rbs index a66414d6..3ad92ea3 100644 --- a/sig/orb/models/item_fetch_params.rbs +++ b/sig/orb/models/item_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::item_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::item_fetch_params end diff --git a/sig/orb/models/item_list_params.rbs b/sig/orb/models/item_list_params.rbs index 4473a255..f7debabb 100644 --- a/sig/orb/models/item_list_params.rbs +++ b/sig/orb/models/item_list_params.rbs @@ -13,13 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::item_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_list_params end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index ba3f721a..be532187 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -15,13 +15,11 @@ module Orb attr_accessor name: String? - def initialize: - ( - external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, - name: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::item_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?name: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_update_params @@ -36,15 +34,10 @@ module Orb attr_accessor external_entity_id: String - def initialize: - ( - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, - external_entity_id: String - ) -> void - | ( - ?Orb::Models::ItemUpdateParams::external_connection - | Orb::BaseModel data - ) -> void + def initialize: ( + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, + external_entity_id: String + ) -> void def to_hash: -> Orb::Models::ItemUpdateParams::external_connection diff --git a/sig/orb/models/metric_create_params.rbs b/sig/orb/models/metric_create_params.rbs index ea1f8a58..23ffbd89 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -24,16 +24,14 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - description: String?, - item_id: String, - name: String, - sql: String, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_create_params | Orb::BaseModel data) -> void + def initialize: ( + description: String?, + item_id: String, + name: String, + sql: String, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_create_params end diff --git a/sig/orb/models/metric_fetch_params.rbs b/sig/orb/models/metric_fetch_params.rbs index ac9ec91b..35077fa2 100644 --- a/sig/orb/models/metric_fetch_params.rbs +++ b/sig/orb/models/metric_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::metric_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::metric_fetch_params end diff --git a/sig/orb/models/metric_list_params.rbs b/sig/orb/models/metric_list_params.rbs index 0aba8238..50272106 100644 --- a/sig/orb/models/metric_list_params.rbs +++ b/sig/orb/models/metric_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_list_params end diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index 56424be6..20901497 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_update_params end diff --git a/sig/orb/models/pagination_metadata.rbs b/sig/orb/models/pagination_metadata.rbs index 76ae3631..0b61fd4e 100644 --- a/sig/orb/models/pagination_metadata.rbs +++ b/sig/orb/models/pagination_metadata.rbs @@ -7,9 +7,7 @@ module Orb attr_accessor next_cursor: String? - def initialize: - (has_more: bool, next_cursor: String?) -> void - | (?Orb::Models::pagination_metadata | Orb::BaseModel data) -> void + def initialize: (has_more: bool, next_cursor: String?) -> void def to_hash: -> Orb::Models::pagination_metadata end diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index da2b8dbe..2c79e754 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -17,14 +17,12 @@ module Orb attr_accessor reason: String? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::PercentageDiscount::discount_type, - percentage_discount: Float, - reason: String? - ) -> void - | (?Orb::Models::percentage_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::PercentageDiscount::discount_type, + percentage_discount: Float, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::percentage_discount diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index 2363fb14..75786064 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -77,34 +77,32 @@ module Orb attr_accessor version: Integer - def initialize: - ( - id: String, - adjustments: ::Array[Orb::Models::Plan::adjustment], - base_plan: Orb::Models::Plan::BasePlan?, - base_plan_id: String?, - created_at: Time, - currency: String, - default_invoice_memo: String?, - description: String, - discount: Orb::Models::discount?, - external_plan_id: String?, - invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Plan::Minimum?, - minimum_amount: String?, - name: String, - net_terms: Integer?, - plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, - prices: ::Array[Orb::Models::price], - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::status, - trial_config: Orb::Models::Plan::TrialConfig, - version: Integer - ) -> void - | (?Orb::Models::plan | Orb::BaseModel data) -> void + def initialize: ( + id: String, + adjustments: ::Array[Orb::Models::Plan::adjustment], + base_plan: Orb::Models::Plan::BasePlan?, + base_plan_id: String?, + created_at: Time, + currency: String, + default_invoice_memo: String?, + description: String, + discount: Orb::Models::discount?, + external_plan_id: String?, + invoicing_currency: String, + maximum: Orb::Models::Plan::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Plan::Minimum?, + minimum_amount: String?, + name: String, + net_terms: Integer?, + plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + prices: ::Array[Orb::Models::price], + product: Orb::Models::Plan::Product, + status: Orb::Models::Plan::status, + trial_config: Orb::Models::Plan::TrialConfig, + version: Integer + ) -> void def to_hash: -> Orb::Models::plan @@ -142,20 +140,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment end @@ -186,20 +179,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment end @@ -230,20 +218,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment end @@ -277,21 +260,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment end @@ -322,20 +300,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment end @@ -352,9 +325,11 @@ module Orb attr_accessor name: String? - def initialize: - (id: String?, external_plan_id: String?, name: String?) -> void - | (?Orb::Models::Plan::base_plan | Orb::BaseModel data) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String? + ) -> void def to_hash: -> Orb::Models::Plan::base_plan end @@ -367,12 +342,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | (?Orb::Models::Plan::maximum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::maximum end @@ -385,12 +358,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | (?Orb::Models::Plan::minimum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::minimum end @@ -433,21 +404,19 @@ module Orb attr_accessor order: Integer - def initialize: - ( - id: String, - description: String?, - discount: Orb::Models::discount?, - duration: Integer?, - duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, - maximum: Orb::Models::Plan::PlanPhase::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::Plan::PlanPhase::Minimum?, - minimum_amount: String?, - name: String, - order: Integer - ) -> void - | (?Orb::Models::Plan::plan_phase | Orb::BaseModel data) -> void + def initialize: ( + id: String, + description: String?, + discount: Orb::Models::discount?, + duration: Integer?, + duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, + maximum: Orb::Models::Plan::PlanPhase::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::Plan::PlanPhase::Minimum?, + minimum_amount: String?, + name: String, + order: Integer + ) -> void def to_hash: -> Orb::Models::Plan::plan_phase @@ -472,14 +441,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Plan::PlanPhase::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::PlanPhase::maximum end @@ -492,14 +457,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Plan::PlanPhase::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::PlanPhase::minimum end @@ -514,9 +475,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, created_at: Time, name: String) -> void - | (?Orb::Models::Plan::product | Orb::BaseModel data) -> void + def initialize: (id: String, created_at: Time, name: String) -> void def to_hash: -> Orb::Models::Plan::product end @@ -542,12 +501,10 @@ module Orb attr_accessor trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit - def initialize: - ( - trial_period: Integer?, - trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit - ) -> void - | (?Orb::Models::Plan::trial_config | Orb::BaseModel data) -> void + def initialize: ( + trial_period: Integer?, + trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit + ) -> void def to_hash: -> Orb::Models::Plan::trial_config diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 05220558..e3ffa244 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -37,19 +37,17 @@ module Orb Orb::Models::PlanCreateParams::status ) -> Orb::Models::PlanCreateParams::status - def initialize: - ( - currency: String, - name: String, - prices: ::Array[Orb::Models::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 - ) -> void - | (?Orb::Models::plan_create_params | Orb::BaseModel data) -> void + def initialize: ( + currency: String, + name: String, + prices: ::Array[Orb::Models::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 + ) -> void def to_hash: -> Orb::Models::plan_create_params @@ -131,28 +129,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::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::NewPlanUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::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::NewPlanUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_price @@ -175,12 +168,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config end @@ -196,15 +184,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration @@ -229,15 +212,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration @@ -302,28 +280,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::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::NewPlanPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::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::NewPlanPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_price @@ -349,12 +322,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config end @@ -370,15 +341,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration @@ -403,15 +369,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration @@ -476,28 +437,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::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::NewPlanMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::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::NewPlanMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_price @@ -529,16 +485,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config @@ -550,15 +501,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value end @@ -575,15 +521,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration @@ -608,15 +549,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration @@ -681,28 +617,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::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::NewPlanTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::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::NewPlanTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_price @@ -728,14 +659,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config @@ -749,16 +675,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier end @@ -775,15 +696,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration @@ -808,15 +724,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration @@ -881,28 +792,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::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::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::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::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price @@ -928,14 +834,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config @@ -956,17 +857,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier end @@ -983,15 +879,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration @@ -1016,15 +907,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration @@ -1089,28 +975,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::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::NewPlanBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::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::NewPlanBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bps_price @@ -1121,12 +1002,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config end @@ -1156,15 +1032,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration @@ -1189,15 +1060,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration @@ -1262,28 +1128,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::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::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::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::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price @@ -1295,14 +1156,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config @@ -1316,16 +1172,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier end @@ -1356,15 +1207,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration @@ -1389,15 +1235,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration @@ -1462,28 +1303,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::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::NewPlanBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::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::NewPlanBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_price @@ -1495,14 +1331,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config @@ -1513,12 +1344,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier end @@ -1549,15 +1378,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration @@ -1582,15 +1406,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration @@ -1655,28 +1474,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::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::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::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::NewPlanThresholdTotalAmountPrice::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::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price @@ -1705,15 +1519,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration @@ -1738,15 +1547,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -1811,28 +1615,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::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::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::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::NewPlanTieredPackagePrice::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::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price @@ -1861,15 +1660,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration @@ -1894,15 +1688,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration @@ -1967,28 +1756,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::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::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::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::NewPlanTieredWithMinimumPrice::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::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price @@ -2017,15 +1801,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration @@ -2050,15 +1829,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration @@ -2123,28 +1897,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::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::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::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::NewPlanUnitWithPercentPrice::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::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price @@ -2173,15 +1942,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration @@ -2206,15 +1970,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration @@ -2279,28 +2038,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::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::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::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::NewPlanPackageWithAllocationPrice::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::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price @@ -2329,15 +2083,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration @@ -2362,15 +2111,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration @@ -2435,28 +2179,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::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::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::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::NewPlanTierWithProrationPrice::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::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price @@ -2485,15 +2224,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration @@ -2518,15 +2252,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration @@ -2591,28 +2320,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::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::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::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::NewPlanUnitWithProrationPrice::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::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price @@ -2641,15 +2365,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration @@ -2674,15 +2393,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration @@ -2747,28 +2461,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::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::NewPlanGroupedAllocationPrice::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::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::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::NewPlanGroupedAllocationPrice::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::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price @@ -2797,15 +2506,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration @@ -2830,15 +2534,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration @@ -2903,28 +2602,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::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::NewPlanGroupedWithProratedMinimumPrice::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::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::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::NewPlanGroupedWithProratedMinimumPrice::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::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price @@ -2953,15 +2647,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -2986,15 +2675,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -3059,28 +2743,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::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::NewPlanGroupedWithMeteredMinimumPrice::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::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::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::NewPlanGroupedWithMeteredMinimumPrice::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::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price @@ -3109,15 +2788,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -3142,15 +2816,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -3215,28 +2884,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::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::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::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::NewPlanMatrixWithDisplayNamePrice::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::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price @@ -3265,15 +2929,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -3298,15 +2957,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -3371,28 +3025,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::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::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::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::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price @@ -3421,15 +3070,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration @@ -3454,15 +3098,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration @@ -3527,28 +3166,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::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::NewPlanGroupedTieredPackagePrice::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::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::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::NewPlanGroupedTieredPackagePrice::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::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price @@ -3577,15 +3211,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration @@ -3610,15 +3239,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration @@ -3683,28 +3307,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::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::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::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::NewPlanMaxGroupTieredPackagePrice::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::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price @@ -3733,15 +3352,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -3766,15 +3380,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -3839,28 +3448,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::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::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::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::NewPlanScalableMatrixWithUnitPricingPrice::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::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price @@ -3889,15 +3493,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -3922,15 +3521,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -3995,28 +3589,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::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::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::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::NewPlanScalableMatrixWithTieredPricingPrice::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::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price @@ -4045,15 +3634,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -4078,15 +3662,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -4151,28 +3730,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::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::NewPlanCumulativeGroupedBulkPrice::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::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::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::NewPlanCumulativeGroupedBulkPrice::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::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_cumulative_grouped_bulk_price @@ -4201,15 +3775,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -4234,15 +3803,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::invoicing_cycle_configuration diff --git a/sig/orb/models/plan_fetch_params.rbs b/sig/orb/models/plan_fetch_params.rbs index f7936936..1354f0de 100644 --- a/sig/orb/models/plan_fetch_params.rbs +++ b/sig/orb/models/plan_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::plan_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::plan_fetch_params end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index f5d7b23e..35ffc30a 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -36,18 +36,16 @@ module Orb Orb::Models::PlanListParams::status ) -> Orb::Models::PlanListParams::status - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - status: Orb::Models::PlanListParams::status, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::plan_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?status: Orb::Models::PlanListParams::status, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::plan_list_params diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index 0e7a5172..51ac1488 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -12,13 +12,11 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::plan_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::plan_update_params 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 8f0b52a6..e7c555e3 100644 --- a/sig/orb/models/plans/external_plan_id_fetch_params.rbs +++ b/sig/orb/models/plans/external_plan_id_fetch_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Plans::external_plan_id_fetch_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Plans::external_plan_id_fetch_params 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 9ea9e594..2fb1db25 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -13,16 +13,11 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Plans::external_plan_id_update_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Plans::external_plan_id_update_params end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 5e3ff29c..82002e72 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -108,34 +108,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitPrice::Item, - maximum: Orb::Models::Price::UnitPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitPrice::price_type, - unit_config: Orb::Models::Price::UnitPrice::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration?, - model_type: :unit - ) -> void - | (?Orb::Models::Price::unit_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitPrice::Item, + maximum: Orb::Models::Price::UnitPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitPrice::price_type, + unit_config: Orb::Models::Price::UnitPrice::UnitConfig, + ?dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::Price::unit_price @@ -144,12 +142,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::billable_metric end @@ -165,15 +158,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::billing_cycle_configuration @@ -208,12 +196,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::credit_allocation end @@ -229,15 +212,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::invoicing_cycle_configuration @@ -258,11 +236,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::item end @@ -275,14 +249,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::maximum end @@ -295,14 +265,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::minimum end @@ -321,11 +287,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::unit_config | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::unit_config end @@ -341,15 +303,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::dimensional_price_configuration end @@ -432,34 +389,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::PackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::PackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackagePrice::Item, - maximum: Orb::Models::Price::PackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackagePrice::Minimum?, - minimum_amount: String?, - name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration?, - model_type: :package - ) -> void - | (?Orb::Models::Price::package_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::PackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::PackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::PackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::PackagePrice::Item, + maximum: Orb::Models::Price::PackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::PackagePrice::Minimum?, + minimum_amount: String?, + name: String, + package_config: Orb::Models::Price::PackagePrice::PackageConfig, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::PackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::Price::package_price @@ -468,12 +423,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::billable_metric end @@ -489,15 +439,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::billing_cycle_configuration @@ -532,12 +477,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::credit_allocation end @@ -553,15 +493,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::invoicing_cycle_configuration @@ -582,11 +517,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::item end @@ -599,14 +530,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::maximum end @@ -619,14 +546,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::minimum end @@ -638,12 +561,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::Price::PackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::package_config end @@ -668,15 +589,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::dimensional_price_configuration end @@ -759,34 +675,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixPrice::Item, - matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, - maximum: Orb::Models::Price::MatrixPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration?, - model_type: :matrix - ) -> void - | (?Orb::Models::Price::matrix_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixPrice::Item, + matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, + maximum: Orb::Models::Price::MatrixPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::Price::matrix_price @@ -795,12 +709,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::billable_metric end @@ -816,15 +725,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::billing_cycle_configuration @@ -859,12 +763,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::credit_allocation end @@ -880,15 +779,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration @@ -909,11 +803,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::item end @@ -932,16 +822,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::matrix_config @@ -953,12 +838,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value end @@ -972,14 +855,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::maximum end @@ -992,14 +871,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::minimum end @@ -1024,15 +899,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::dimensional_price_configuration end @@ -1115,34 +985,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPrice::Item, - maximum: Orb::Models::Price::TieredPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPrice::price_type, - tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration?, - model_type: :tiered - ) -> void - | (?Orb::Models::Price::tiered_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPrice::Item, + maximum: Orb::Models::Price::TieredPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPrice::price_type, + tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, + ?dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::Price::tiered_price @@ -1151,12 +1019,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::billable_metric end @@ -1172,15 +1035,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::billing_cycle_configuration @@ -1215,12 +1073,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::credit_allocation end @@ -1236,15 +1089,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::invoicing_cycle_configuration @@ -1265,11 +1113,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::item end @@ -1282,14 +1126,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::maximum end @@ -1302,14 +1142,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::minimum end @@ -1331,14 +1167,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::tiered_config @@ -1352,16 +1183,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::TieredConfig::tier end @@ -1378,15 +1204,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::dimensional_price_configuration end @@ -1469,36 +1290,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredBpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredBpsPrice::Item, - maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBpsPrice::price_type, - tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::Price::tiered_bps_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredBpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredBpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredBpsPrice::Item, + maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredBpsPrice::price_type, + tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, + ?dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::Price::tiered_bps_price @@ -1507,12 +1324,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::billable_metric end @@ -1528,15 +1340,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration @@ -1571,12 +1378,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::credit_allocation end @@ -1592,15 +1394,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration @@ -1621,11 +1418,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::item end @@ -1638,14 +1431,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::maximum end @@ -1658,14 +1447,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::minimum end @@ -1687,14 +1472,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::tiered_bps_config @@ -1715,17 +1495,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier end @@ -1742,15 +1517,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration end @@ -1833,48 +1603,41 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, - bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Orb::Models::Price::BpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BpsPrice::Item, - maximum: Orb::Models::Price::BpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BpsPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration?, - model_type: :bps - ) -> void - | (?Orb::Models::Price::bps_price | Orb::BaseModel data) -> void - - def to_hash: -> Orb::Models::Price::bps_price - + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, + bps_config: Orb::Models::Price::BpsPrice::BpsConfig, + cadence: Orb::Models::Price::BpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BpsPrice::Item, + maximum: Orb::Models::Price::BpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BpsPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration?, + ?model_type: :bps + ) -> void + + def to_hash: -> Orb::Models::Price::bps_price + type billable_metric = { id: String } class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::billable_metric end @@ -1890,15 +1653,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::billing_cycle_configuration @@ -1919,11 +1677,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::Price::BpsPrice::bps_config | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::Price::BpsPrice::bps_config end @@ -1949,12 +1703,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::credit_allocation end @@ -1970,15 +1719,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::invoicing_cycle_configuration @@ -1999,11 +1743,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::item end @@ -2016,14 +1756,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::maximum end @@ -2036,14 +1772,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::minimum end @@ -2068,15 +1800,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::dimensional_price_configuration end @@ -2159,34 +1886,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkBpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkBpsPrice::Item, - maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBpsPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration?, - model_type: :bulk_bps - ) -> void - | (?Orb::Models::Price::bulk_bps_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, + bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::Price::BulkBpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkBpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkBpsPrice::Item, + maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkBpsPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::Price::bulk_bps_price @@ -2195,12 +1920,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::billable_metric end @@ -2216,15 +1936,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration @@ -2246,14 +1961,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::bulk_bps_config @@ -2267,16 +1977,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier end @@ -2303,12 +2008,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::credit_allocation end @@ -2324,15 +2024,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration @@ -2353,11 +2048,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::item end @@ -2370,14 +2061,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::maximum end @@ -2390,14 +2077,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::minimum end @@ -2422,15 +2105,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration end @@ -2513,34 +2191,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Orb::Models::Price::BulkPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkPrice::Item, - maximum: Orb::Models::Price::BulkPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration?, - model_type: :bulk - ) -> void - | (?Orb::Models::Price::bulk_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, + bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, + cadence: Orb::Models::Price::BulkPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkPrice::Item, + maximum: Orb::Models::Price::BulkPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::Price::bulk_price @@ -2549,12 +2225,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::billable_metric end @@ -2570,15 +2241,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::billing_cycle_configuration @@ -2598,13 +2264,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::bulk_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::bulk_config @@ -2615,12 +2277,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::Price::BulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::BulkConfig::tier end @@ -2647,12 +2307,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::credit_allocation end @@ -2668,15 +2323,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::invoicing_cycle_configuration @@ -2697,11 +2347,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::item end @@ -2714,14 +2360,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::maximum end @@ -2734,14 +2376,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::minimum end @@ -2766,15 +2404,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::dimensional_price_configuration end @@ -2857,37 +2490,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmountPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, - maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, - threshold_total_amount_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::Price::threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, + maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, + threshold_total_amount_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::Price::threshold_total_amount_price @@ -2896,12 +2524,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric end @@ -2917,15 +2540,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration @@ -2960,12 +2578,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation end @@ -2981,15 +2594,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -3010,12 +2618,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::item end @@ -3028,15 +2631,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::maximum end @@ -3049,15 +2647,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::minimum end @@ -3082,15 +2675,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration end @@ -3173,36 +2761,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackagePrice::Item, - maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackagePrice::price_type, - tiered_package_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::Price::tiered_package_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPackagePrice::Item, + maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPackagePrice::price_type, + tiered_package_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::Price::tiered_package_price @@ -3211,12 +2795,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::billable_metric end @@ -3232,15 +2811,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration @@ -3275,12 +2849,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::credit_allocation end @@ -3296,15 +2865,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration @@ -3325,12 +2889,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::item end @@ -3343,15 +2902,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::maximum end @@ -3364,15 +2918,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::minimum end @@ -3397,15 +2946,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration end @@ -3488,50 +3032,41 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPrice::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::GroupedTieredPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPrice::Item, - maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration?, - model_type: :grouped_tiered - ) -> void - | ( - ?Orb::Models::Price::grouped_tiered_price | Orb::BaseModel data - ) -> void - - def to_hash: -> Orb::Models::Price::grouped_tiered_price - - type billable_metric = { id: String } - - class BillableMetric < Orb::BaseModel - attr_accessor id: String - - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedTieredPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedTieredPrice::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::GroupedTieredPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedTieredPrice::Item, + maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedTieredPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_tiered + ) -> void + + def to_hash: -> Orb::Models::Price::grouped_tiered_price + + type billable_metric = { id: String } + + class BillableMetric < Orb::BaseModel + attr_accessor id: String + + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billable_metric end @@ -3547,15 +3082,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration @@ -3590,12 +3120,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::credit_allocation end @@ -3611,15 +3136,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration @@ -3640,12 +3160,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::item end @@ -3658,15 +3173,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::maximum end @@ -3679,15 +3189,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::minimum end @@ -3712,15 +3217,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration end @@ -3803,36 +3303,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithMinimumPrice::Item, - maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, - tiered_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::Price::tiered_with_minimum_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredWithMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredWithMinimumPrice::Item, + maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::Price::tiered_with_minimum_price @@ -3841,12 +3337,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billable_metric end @@ -3862,15 +3353,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration @@ -3905,12 +3391,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::credit_allocation end @@ -3926,15 +3407,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration @@ -3955,12 +3431,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::item end @@ -3973,15 +3444,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::maximum end @@ -3994,15 +3460,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::minimum end @@ -4027,15 +3488,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration end @@ -4118,37 +3574,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, - tiered_package_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration?, - model_type: :tiered_package_with_minimum - ) -> void - | ( - ?Orb::Models::Price::tiered_package_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, + maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, + tiered_package_with_minimum_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_package_with_minimum + ) -> void def to_hash: -> Orb::Models::Price::tiered_package_with_minimum_price @@ -4157,12 +3608,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric end @@ -4178,15 +3624,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration @@ -4221,12 +3662,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation end @@ -4242,15 +3678,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration @@ -4271,12 +3702,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::item end @@ -4289,15 +3715,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::maximum end @@ -4310,15 +3731,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::minimum end @@ -4343,15 +3759,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration end @@ -4434,37 +3845,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackageWithAllocationPrice::Item, - maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::Price::package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::PackageWithAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::PackageWithAllocationPrice::Item, + maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + plan_phase_order: Integer?, + price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::Price::package_with_allocation_price @@ -4473,12 +3879,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billable_metric end @@ -4494,15 +3895,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration @@ -4537,12 +3933,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::credit_allocation end @@ -4558,15 +3949,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration @@ -4587,12 +3973,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::item end @@ -4605,15 +3986,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::maximum end @@ -4626,15 +4002,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::minimum end @@ -4659,15 +4030,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration end @@ -4750,36 +4116,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercentPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercentPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithPercentPrice::Item, - maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, - unit_with_percent_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::Price::unit_with_percent_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitWithPercentPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitWithPercentPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitWithPercentPrice::Item, + maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, + unit_with_percent_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::Price::unit_with_percent_price @@ -4788,12 +4150,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billable_metric end @@ -4809,15 +4166,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration @@ -4852,12 +4204,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::credit_allocation end @@ -4873,15 +4220,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration @@ -4902,12 +4244,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::item end @@ -4920,15 +4257,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::maximum end @@ -4941,15 +4273,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::minimum end @@ -4974,15 +4301,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration end @@ -5065,37 +4387,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithAllocationPrice::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration?, - model_type: :matrix_with_allocation - ) -> void - | ( - ?Orb::Models::Price::matrix_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixWithAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixWithAllocationPrice::Item, + matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, + maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixWithAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :matrix_with_allocation + ) -> void def to_hash: -> Orb::Models::Price::matrix_with_allocation_price @@ -5104,12 +4421,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billable_metric end @@ -5125,15 +4437,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration @@ -5168,12 +4475,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation end @@ -5189,15 +4491,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration @@ -5218,12 +4515,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::item end @@ -5245,17 +4537,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config @@ -5267,12 +4554,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end @@ -5286,15 +4571,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::maximum end @@ -5307,15 +4587,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::minimum end @@ -5340,15 +4615,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration end @@ -5431,37 +4701,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithProrationPrice::Item, - maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, - tiered_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::Price::tiered_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredWithProrationPrice::Item, + maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, + tiered_with_proration_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::Price::tiered_with_proration_price @@ -5470,12 +4735,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billable_metric end @@ -5491,15 +4751,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration @@ -5534,12 +4789,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::credit_allocation end @@ -5555,15 +4805,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration @@ -5584,12 +4829,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::item end @@ -5602,15 +4842,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::maximum end @@ -5623,15 +4858,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::minimum end @@ -5656,15 +4886,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration end @@ -5747,36 +4972,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithProrationPrice::Item, - maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, - unit_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::Price::unit_with_proration_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitWithProrationPrice::Item, + maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, + unit_with_proration_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::Price::unit_with_proration_price @@ -5785,12 +5006,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billable_metric end @@ -5806,15 +5022,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration @@ -5849,12 +5060,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::credit_allocation end @@ -5870,15 +5076,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration @@ -5899,12 +5100,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::item end @@ -5917,15 +5113,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::maximum end @@ -5938,15 +5129,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::minimum end @@ -5971,15 +5157,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration end @@ -6062,36 +5243,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocationPrice::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::GroupedAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedAllocationPrice::Item, - maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::Price::grouped_allocation_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedAllocationPrice::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::GroupedAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedAllocationPrice::Item, + maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::Price::grouped_allocation_price @@ -6100,12 +5277,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billable_metric end @@ -6121,15 +5293,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration @@ -6164,12 +5331,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::credit_allocation end @@ -6185,15 +5347,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration @@ -6214,12 +5371,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::item end @@ -6232,15 +5384,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::maximum end @@ -6253,15 +5400,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::minimum end @@ -6286,15 +5428,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration end @@ -6377,37 +5514,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimumPrice::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::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::Price::grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedWithProratedMinimumPrice::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::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, + maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::Price::grouped_with_prorated_minimum_price @@ -6416,12 +5548,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric end @@ -6437,15 +5564,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -6480,12 +5602,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation end @@ -6501,15 +5618,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -6530,12 +5642,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::item end @@ -6548,15 +5655,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum end @@ -6569,15 +5671,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum end @@ -6602,15 +5699,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration end @@ -6693,37 +5785,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimumPrice::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::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::Price::grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimumPrice::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::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, + maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::Price::grouped_with_metered_minimum_price @@ -6732,12 +5819,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric end @@ -6753,15 +5835,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -6796,12 +5873,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation end @@ -6817,15 +5889,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -6846,12 +5913,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::item end @@ -6864,15 +5926,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum end @@ -6885,15 +5942,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum end @@ -6918,15 +5970,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration end @@ -7009,37 +6056,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::Price::matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, + matrix_with_display_name_config: ::Hash[Symbol, top], + maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::Price::matrix_with_display_name_price @@ -7048,12 +6090,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric end @@ -7069,15 +6106,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration @@ -7112,12 +6144,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation end @@ -7133,15 +6160,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -7162,12 +6184,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::item end @@ -7180,15 +6197,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::maximum end @@ -7201,15 +6213,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::minimum end @@ -7234,15 +6241,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration end @@ -7325,36 +6327,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkWithProrationPrice::Item, - maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProrationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::Price::bulk_with_proration_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkWithProrationPrice::Item, + maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkWithProrationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::Price::bulk_with_proration_price @@ -7363,12 +6361,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billable_metric end @@ -7384,15 +6377,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration @@ -7427,12 +6415,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::credit_allocation end @@ -7448,15 +6431,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration @@ -7477,12 +6455,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::item end @@ -7495,15 +6468,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::maximum end @@ -7516,15 +6484,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::minimum end @@ -7549,15 +6512,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration end @@ -7640,37 +6598,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackagePrice::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::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPackagePrice::Item, - maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::Price::grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedTieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedTieredPackagePrice::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::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedTieredPackagePrice::Item, + maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedTieredPackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::Price::grouped_tiered_package_price @@ -7679,12 +6632,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billable_metric end @@ -7700,15 +6648,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration @@ -7743,12 +6686,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation end @@ -7764,15 +6702,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration @@ -7793,12 +6726,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::item end @@ -7811,15 +6739,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::maximum end @@ -7832,15 +6755,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::minimum end @@ -7865,15 +6783,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration end @@ -7956,37 +6869,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::Price::max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, + max_group_tiered_package_config: ::Hash[Symbol, top], + maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::Price::max_group_tiered_package_price @@ -7995,12 +6903,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric end @@ -8016,15 +6919,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration @@ -8059,12 +6957,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation end @@ -8080,15 +6973,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -8109,12 +6997,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::item end @@ -8127,15 +7010,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::maximum end @@ -8148,15 +7026,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::minimum end @@ -8181,15 +7054,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration end @@ -8272,37 +7140,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::Price::scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, + maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::Price::scalable_matrix_with_unit_pricing_price @@ -8311,12 +7174,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric end @@ -8332,15 +7190,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -8375,12 +7228,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation end @@ -8396,15 +7244,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -8425,12 +7268,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item end @@ -8443,15 +7281,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum end @@ -8464,15 +7297,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum end @@ -8497,15 +7325,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration end @@ -8588,37 +7411,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::Price::scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, + maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::Price::scalable_matrix_with_tiered_pricing_price @@ -8627,12 +7445,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric end @@ -8648,15 +7461,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -8691,12 +7499,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation end @@ -8712,15 +7515,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -8741,12 +7539,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item end @@ -8759,15 +7552,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum end @@ -8780,15 +7568,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum end @@ -8813,15 +7596,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration end @@ -8904,37 +7682,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulkPrice::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::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::Price::cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::CumulativeGroupedBulkPrice::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::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, + maximum: Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::Price::cumulative_grouped_bulk_price @@ -8943,12 +7716,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::billable_metric end @@ -8964,15 +7732,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::billing_cycle_configuration @@ -9007,12 +7770,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::credit_allocation end @@ -9028,15 +7786,10 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -9057,12 +7810,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::item end @@ -9075,15 +7823,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::maximum end @@ -9096,15 +7839,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::minimum end @@ -9129,15 +7867,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::dimensional_price_configuration end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index fc176747..92ba267c 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -135,53 +135,51 @@ module Orb attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] - def initialize: - ( - cadence: Orb::Models::PriceCreateParams::cadence, - currency: String, - 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, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_create_params | Orb::BaseModel data) -> void + def initialize: ( + cadence: Orb::Models::PriceCreateParams::cadence, + currency: String, + 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, + threshold_total_amount_config: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_create_params @@ -212,11 +210,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::unit_config | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::PriceCreateParams::unit_config end @@ -232,15 +226,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PriceCreateParams::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::billing_cycle_configuration @@ -265,15 +254,10 @@ module Orb attr_accessor duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PriceCreateParams::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::invoicing_cycle_configuration @@ -294,12 +278,7 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::PriceCreateParams::package_config - | Orb::BaseModel data - ) -> void + def initialize: (package_amount: String, package_size: Integer) -> void def to_hash: -> Orb::Models::PriceCreateParams::package_config end @@ -318,15 +297,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::matrix_config | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::matrix_config @@ -338,12 +313,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::MatrixConfig::matrix_value end @@ -366,17 +339,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config @@ -388,12 +356,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value end @@ -405,13 +371,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::tiered_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::tiered_config @@ -425,12 +387,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - (first_unit: Float, unit_amount: String, last_unit: Float?) -> void - | ( - ?Orb::Models::PriceCreateParams::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::TieredConfig::tier end @@ -444,14 +405,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::tiered_bps_config @@ -472,17 +428,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PriceCreateParams::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::TieredBpsConfig::tier end @@ -495,11 +446,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::PriceCreateParams::bps_config | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::PriceCreateParams::bps_config end @@ -510,14 +457,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::bulk_bps_config @@ -531,16 +473,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PriceCreateParams::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::BulkBpsConfig::tier end @@ -552,13 +489,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::bulk_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::bulk_config @@ -569,12 +502,7 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::PriceCreateParams::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String, ?maximum_units: Float?) -> void def to_hash: -> Orb::Models::PriceCreateParams::BulkConfig::tier end diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index 5fba14c8..14b07520 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -29,17 +29,15 @@ module Orb def grouping_keys=: (::Array[String]) -> ::Array[String] - def initialize: - ( - timeframe_end: Time, - timeframe_start: Time, - customer_id: String?, - external_customer_id: String?, - filter: String?, - grouping_keys: ::Array[String], - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_evaluate_params | Orb::BaseModel data) -> void + def initialize: ( + timeframe_end: Time, + timeframe_start: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?filter: String?, + ?grouping_keys: ::Array[String], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_evaluate_params end diff --git a/sig/orb/models/price_evaluate_response.rbs b/sig/orb/models/price_evaluate_response.rbs index be91ac13..a3efe784 100644 --- a/sig/orb/models/price_evaluate_response.rbs +++ b/sig/orb/models/price_evaluate_response.rbs @@ -6,9 +6,7 @@ module Orb class PriceEvaluateResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::EvaluatePriceGroup] - def initialize: - (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void - | (?Orb::Models::price_evaluate_response | Orb::BaseModel data) -> void + def initialize: (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void def to_hash: -> Orb::Models::price_evaluate_response end diff --git a/sig/orb/models/price_fetch_params.rbs b/sig/orb/models/price_fetch_params.rbs index cb8d1461..b5f68aad 100644 --- a/sig/orb/models/price_fetch_params.rbs +++ b/sig/orb/models/price_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::price_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::price_fetch_params end diff --git a/sig/orb/models/price_list_params.rbs b/sig/orb/models/price_list_params.rbs index 041bc358..3d331900 100644 --- a/sig/orb/models/price_list_params.rbs +++ b/sig/orb/models/price_list_params.rbs @@ -13,13 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_list_params end diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 08aa69fc..6fb75cd3 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_update_params 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 8e583dd0..0bb37c0c 100644 --- a/sig/orb/models/prices/external_price_id_fetch_params.rbs +++ b/sig/orb/models/prices/external_price_id_fetch_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Prices::external_price_id_fetch_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Prices::external_price_id_fetch_params 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 23895fcb..b706a797 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -10,15 +10,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Prices::external_price_id_update_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Prices::external_price_id_update_params end diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index 12725b41..e945d561 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -80,35 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::Subscription::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::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, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::Subscription::status, - trial_info: Orb::Models::Subscription::TrialInfo - ) -> void - | (?Orb::Models::subscription | Orb::BaseModel data) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::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, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], + redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::Subscription::status, + trial_info: Orb::Models::Subscription::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription @@ -132,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::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 @@ -181,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -225,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -269,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -316,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -361,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -393,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::Subscription::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::Subscription::billing_cycle_anchor_configuration end @@ -432,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount_discount_interval end @@ -472,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage_discount_interval end @@ -512,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval end @@ -544,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::fixed_fee_quantity_schedule end @@ -579,17 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::maximum_interval | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::maximum_interval end @@ -614,17 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::minimum_interval | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::minimum_interval end @@ -664,22 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::Subscription::price_interval | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::Subscription::price_interval @@ -693,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition end @@ -714,11 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::Subscription::redeemed_coupon | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::redeemed_coupon end @@ -738,11 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::Subscription::trial_info | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::Subscription::trial_info end diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 91fcd3c1..081ebb87 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -18,16 +18,12 @@ module Orb attr_accessor cancellation_date: Time? - def initialize: - ( - cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, - allow_invoice_credit_or_void: bool?, - cancellation_date: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_cancel_params | Orb::BaseModel data - ) -> void + def initialize: ( + cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, + ?allow_invoice_credit_or_void: bool?, + ?cancellation_date: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_cancel_params diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index 4d79f665..3d5332a2 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionCancelResponse::status, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_cancel_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionCancelResponse::status, + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_cancel_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval @@ -183,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -395,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration end @@ -434,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval end @@ -514,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval end @@ -546,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule end @@ -581,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::maximum_interval end @@ -617,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::minimum_interval end @@ -668,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::price_interval @@ -698,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::redeemed_coupon end @@ -744,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::trial_info end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 7ec37406..83c789e3 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -104,44 +104,40 @@ 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]?, - align_billing_with_subscription_start_date: bool, - auto_collection: bool?, - aws_region: String?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - customer_id: String?, - default_invoice_memo: String?, - end_date: Time?, - external_customer_id: String?, - external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, - external_marketplace_reporting_id: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, - start_date: Time?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?align_billing_with_subscription_start_date: bool, + ?auto_collection: bool?, + ?aws_region: String?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?customer_id: String?, + ?default_invoice_memo: String?, + ?end_date: Time?, + ?external_customer_id: String?, + ?external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, + ?external_marketplace_reporting_id: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + ?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 @@ -162,17 +158,12 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, - end_date: Time?, - plan_phase_order: Integer?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, + ?end_date: Time?, + ?plan_phase_order: Integer?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::add_adjustment @@ -203,17 +194,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -237,17 +223,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount end @@ -271,17 +252,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount end @@ -308,18 +284,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum end @@ -343,17 +314,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum end @@ -397,23 +363,18 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::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_id: String?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::add_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::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_id: String?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::add_price @@ -434,17 +395,12 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::allocation_price @@ -480,17 +436,12 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::discount @@ -586,29 +537,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price @@ -636,12 +582,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -657,15 +598,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration @@ -690,15 +626,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration @@ -766,29 +697,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price @@ -819,12 +745,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end @@ -840,15 +764,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration @@ -873,15 +792,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration @@ -949,29 +863,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price @@ -1008,16 +917,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -1029,15 +933,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -1054,15 +953,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration @@ -1087,15 +981,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration @@ -1163,29 +1052,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price @@ -1216,14 +1100,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1237,16 +1116,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -1263,15 +1137,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration @@ -1296,15 +1165,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration @@ -1372,29 +1236,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price @@ -1425,14 +1284,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1453,17 +1307,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -1480,15 +1329,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration @@ -1513,15 +1357,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration @@ -1589,29 +1428,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price @@ -1622,12 +1456,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -1662,15 +1491,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration @@ -1695,15 +1519,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration @@ -1771,29 +1590,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price @@ -1805,14 +1619,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1830,16 +1639,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -1875,15 +1679,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration @@ -1908,15 +1707,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration @@ -1984,29 +1778,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price @@ -2018,14 +1807,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -2036,12 +1820,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -2077,15 +1859,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration @@ -2110,15 +1887,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration @@ -2186,29 +1958,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price @@ -2242,15 +2009,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration @@ -2275,15 +2037,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -2351,29 +2108,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price @@ -2407,15 +2159,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration @@ -2440,15 +2187,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration @@ -2516,32 +2258,27 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void + + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price + type cadence = :annual | :semi_annual @@ -2572,15 +2309,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration @@ -2605,15 +2337,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration @@ -2681,29 +2408,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price @@ -2737,15 +2459,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration @@ -2770,15 +2487,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration @@ -2846,29 +2558,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price @@ -2902,15 +2609,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration @@ -2935,15 +2637,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration @@ -3011,29 +2708,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price @@ -3067,15 +2759,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration @@ -3100,15 +2787,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration @@ -3176,29 +2858,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price @@ -3232,15 +2909,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration @@ -3265,15 +2937,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration @@ -3341,29 +3008,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price @@ -3397,15 +3059,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration @@ -3430,15 +3087,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration @@ -3506,29 +3158,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -3562,15 +3209,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -3595,15 +3237,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -3671,29 +3308,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price @@ -3727,15 +3359,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration @@ -3760,15 +3387,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration @@ -3836,29 +3458,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -3892,15 +3509,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -3925,15 +3537,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -4001,29 +3608,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -4057,15 +3659,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -4090,15 +3687,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -4166,29 +3758,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -4222,15 +3809,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -4255,15 +3837,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -4331,29 +3908,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_max_group_tiered_package_price @@ -4387,15 +3959,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -4420,15 +3987,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -4496,29 +4058,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -4552,15 +4109,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -4585,15 +4137,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -4661,29 +4208,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_with_display_name_price @@ -4717,15 +4259,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -4750,15 +4287,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -4826,29 +4358,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_tiered_package_price @@ -4882,15 +4409,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration @@ -4915,15 +4437,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration @@ -4952,12 +4469,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration end @@ -4977,12 +4493,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel attr_accessor adjustment_id: String - def initialize: - (adjustment_id: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::remove_adjustment - | Orb::BaseModel data - ) -> void + def initialize: (adjustment_id: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_adjustment end @@ -4994,12 +4505,10 @@ module Orb attr_accessor price_id: String? - def initialize: - (external_price_id: String?, price_id: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::remove_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_price_id: String?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_price end @@ -5015,15 +4524,10 @@ module Orb attr_accessor replaces_adjustment_id: String - def initialize: - ( - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, - replaces_adjustment_id: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::replace_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, + replaces_adjustment_id: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_adjustment @@ -5054,17 +4558,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount end @@ -5088,17 +4587,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount end @@ -5122,17 +4616,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount end @@ -5159,18 +4648,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum end @@ -5194,17 +4678,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum end @@ -5245,22 +4724,17 @@ module Orb 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]?, - external_price_id: String?, - fixed_price_quantity: Float?, - maximum_amount: String?, - minimum_amount: String?, - price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, - price_id: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::replace_price - | Orb::BaseModel data - ) -> void + def initialize: ( + replaces_price_id: String, + ?allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_price @@ -5281,17 +4755,12 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::allocation_price @@ -5327,17 +4796,12 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::discount @@ -5433,29 +4897,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price @@ -5483,12 +4942,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -5504,15 +4958,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration @@ -5537,15 +4986,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration @@ -5613,29 +5057,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price @@ -5666,12 +5105,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end @@ -5687,15 +5124,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration @@ -5720,15 +5152,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration @@ -5796,29 +5223,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price @@ -5855,16 +5277,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -5876,15 +5293,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -5901,15 +5313,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration @@ -5934,15 +5341,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration @@ -6010,29 +5412,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price @@ -6063,14 +5460,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -6084,16 +5476,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -6110,15 +5497,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration @@ -6143,15 +5525,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration @@ -6219,29 +5596,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price @@ -6272,14 +5644,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -6300,17 +5667,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -6327,15 +5689,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration @@ -6360,15 +5717,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration @@ -6436,29 +5788,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price @@ -6469,12 +5816,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -6509,15 +5851,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration @@ -6542,15 +5879,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration @@ -6618,29 +5950,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price @@ -6652,14 +5979,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -6677,16 +5999,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -6722,15 +6039,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration @@ -6755,15 +6067,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration @@ -6831,29 +6138,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price @@ -6865,14 +6167,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -6883,12 +6180,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -6924,15 +6219,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration @@ -6957,15 +6247,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration @@ -7033,29 +6318,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price @@ -7089,15 +6369,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration @@ -7122,15 +6397,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -7198,29 +6468,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price @@ -7254,15 +6519,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration @@ -7287,15 +6547,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration @@ -7363,29 +6618,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price @@ -7419,15 +6669,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration @@ -7452,15 +6697,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration @@ -7528,29 +6768,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price @@ -7584,15 +6819,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration @@ -7617,15 +6847,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration @@ -7693,29 +6918,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price @@ -7749,15 +6969,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration @@ -7782,15 +6997,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration @@ -7858,29 +7068,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price @@ -7914,15 +7119,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration @@ -7947,15 +7147,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration @@ -8023,29 +7218,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price @@ -8079,15 +7269,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration @@ -8112,15 +7297,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration @@ -8188,29 +7368,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price @@ -8244,15 +7419,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration @@ -8277,15 +7447,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration @@ -8353,29 +7518,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -8409,15 +7569,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -8442,15 +7597,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -8518,29 +7668,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price @@ -8574,15 +7719,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration @@ -8607,15 +7747,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration @@ -8683,29 +7818,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -8739,15 +7869,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -8772,15 +7897,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -8848,29 +7968,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -8904,15 +8019,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -8937,15 +8047,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -9013,29 +8118,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -9069,15 +8169,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -9102,15 +8197,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -9178,29 +8268,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price @@ -9234,15 +8319,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -9267,15 +8347,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -9343,29 +8418,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -9399,15 +8469,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -9432,15 +8497,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -9508,29 +8568,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price @@ -9564,15 +8619,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -9597,15 +8647,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -9673,29 +8718,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price @@ -9729,15 +8769,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration @@ -9762,15 +8797,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index 63cae447..06aa2ba3 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionCreateResponse::status, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionCreateResponse::status, + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_create_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval @@ -183,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -395,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration end @@ -434,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval end @@ -514,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval end @@ -546,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule end @@ -581,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::maximum_interval end @@ -617,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::minimum_interval end @@ -668,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::price_interval @@ -698,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::redeemed_coupon end @@ -744,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::trial_info end diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 2c6dd039..74364969 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -21,17 +21,13 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_costs_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_costs_params diff --git a/sig/orb/models/subscription_fetch_costs_response.rbs b/sig/orb/models/subscription_fetch_costs_response.rbs index 8d28c0f5..27f26ba9 100644 --- a/sig/orb/models/subscription_fetch_costs_response.rbs +++ b/sig/orb/models/subscription_fetch_costs_response.rbs @@ -6,13 +6,9 @@ module Orb class SubscriptionFetchCostsResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] - ) -> void - | ( - ?Orb::Models::subscription_fetch_costs_response | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] + ) -> void def to_hash: -> Orb::Models::subscription_fetch_costs_response @@ -36,18 +32,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::SubscriptionFetchCostsResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::data @@ -71,18 +62,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost end diff --git a/sig/orb/models/subscription_fetch_params.rbs b/sig/orb/models/subscription_fetch_params.rbs index 0ddfd0bd..5eef1b0d 100644 --- a/sig/orb/models/subscription_fetch_params.rbs +++ b/sig/orb/models/subscription_fetch_params.rbs @@ -6,11 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_fetch_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_fetch_params end diff --git a/sig/orb/models/subscription_fetch_schedule_params.rbs b/sig/orb/models/subscription_fetch_schedule_params.rbs index 0906b95d..9b6eb3dd 100644 --- a/sig/orb/models/subscription_fetch_schedule_params.rbs +++ b/sig/orb/models/subscription_fetch_schedule_params.rbs @@ -29,19 +29,15 @@ module Orb attr_accessor start_date_lte: Time? - def initialize: - ( - cursor: String?, - limit: Integer, - start_date_gt: Time?, - start_date_gte: Time?, - start_date_lt: Time?, - start_date_lte: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_schedule_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?start_date_gt: Time?, + ?start_date_gte: Time?, + ?start_date_lt: Time?, + ?start_date_lte: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_schedule_params end diff --git a/sig/orb/models/subscription_fetch_schedule_response.rbs b/sig/orb/models/subscription_fetch_schedule_response.rbs index 1d25b050..b0338e96 100644 --- a/sig/orb/models/subscription_fetch_schedule_response.rbs +++ b/sig/orb/models/subscription_fetch_schedule_response.rbs @@ -17,17 +17,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - created_at: Time, - end_date: Time?, - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, - start_date: Time - ) -> void - | ( - ?Orb::Models::subscription_fetch_schedule_response - | Orb::BaseModel data - ) -> void + def initialize: ( + created_at: Time, + end_date: Time?, + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + start_date: Time + ) -> void def to_hash: -> Orb::Models::subscription_fetch_schedule_response @@ -40,12 +35,11 @@ module Orb attr_accessor name: String? - def initialize: - (id: String?, external_plan_id: String?, name: String?) -> void - | ( - ?Orb::Models::SubscriptionFetchScheduleResponse::plan - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchScheduleResponse::plan end diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index 4201d5ed..d0f10aca 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -39,23 +39,19 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode? - def initialize: - ( - billable_metric_id: String?, - first_dimension_key: String?, - first_dimension_value: String?, - granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, - group_by: String?, - second_dimension_key: String?, - second_dimension_value: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_usage_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?billable_metric_id: String?, + ?first_dimension_key: String?, + ?first_dimension_value: String?, + ?granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, + ?group_by: String?, + ?second_dimension_key: String?, + ?second_dimension_value: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_usage_params diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index dda75a9e..84acdf74 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -38,20 +38,18 @@ module Orb attr_accessor status: Orb::Models::SubscriptionListParams::status? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: ::Array[String]?, - external_customer_id: ::Array[String]?, - limit: Integer, - status: Orb::Models::SubscriptionListParams::status?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::subscription_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: ::Array[String]?, + ?external_customer_id: ::Array[String]?, + ?limit: Integer, + ?status: Orb::Models::SubscriptionListParams::status?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_list_params diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 6f8bd32f..ffaef291 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -40,19 +40,14 @@ module Orb ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] - def initialize: - ( - add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: bool?, - edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_price_intervals_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?allow_invoice_credit_or_void: bool?, + ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_price_intervals_params @@ -97,25 +92,20 @@ module Orb 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?, - external_price_id: String?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, - maximum_amount: Float?, - minimum_amount: Float?, - price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, - price_id: String?, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::add - | Orb::BaseModel data - ) -> void + 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?, + ?external_price_id: String?, + ?filter: String?, + ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + ?maximum_amount: Float?, + ?minimum_amount: Float?, + ?price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, + ?price_id: String?, + ?usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add @@ -142,17 +132,12 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price @@ -185,12 +170,10 @@ module Orb attr_accessor discount_type: :amount - def initialize: - (amount_discount: Float, discount_type: :amount) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: Float, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params end @@ -203,12 +186,10 @@ module Orb attr_accessor percentage_discount: Float - def initialize: - (percentage_discount: Float, discount_type: :percentage) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + percentage_discount: Float, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params end @@ -221,12 +202,10 @@ module Orb attr_accessor usage_discount: Float - def initialize: - (usage_discount: Float, discount_type: :usage) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params end @@ -248,12 +227,7 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: (effective_date: Time, quantity: Integer) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition end @@ -339,28 +313,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, - currency: String, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, + currency: String, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price @@ -388,12 +357,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config end @@ -409,15 +373,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration @@ -442,15 +401,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration @@ -515,28 +469,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence, - currency: String, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence, + currency: String, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price @@ -567,12 +516,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config end @@ -588,15 +535,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration @@ -621,15 +563,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration @@ -694,28 +631,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence, - currency: String, - item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence, + currency: String, + item_id: String, + matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price @@ -752,16 +684,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config @@ -773,15 +700,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value end @@ -798,15 +720,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration @@ -831,15 +748,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration @@ -904,28 +816,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence, - currency: String, - item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence, + currency: String, + item_id: String, + matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price @@ -965,17 +872,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config @@ -987,15 +889,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end @@ -1012,15 +909,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration @@ -1045,15 +937,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration @@ -1118,28 +1005,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price @@ -1170,14 +1052,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config @@ -1191,16 +1068,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier end @@ -1217,15 +1089,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration @@ -1250,15 +1117,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration @@ -1323,28 +1185,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price @@ -1375,14 +1232,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config @@ -1403,17 +1255,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier end @@ -1430,15 +1277,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration @@ -1463,15 +1305,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration @@ -1536,28 +1373,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price @@ -1568,12 +1400,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config end @@ -1608,15 +1435,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration @@ -1641,15 +1463,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration @@ -1714,28 +1531,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price @@ -1747,14 +1559,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config @@ -1772,16 +1579,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier end @@ -1817,15 +1619,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration @@ -1850,15 +1647,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration @@ -1923,28 +1715,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price @@ -1956,14 +1743,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config @@ -1974,12 +1756,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier end @@ -2015,15 +1795,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration @@ -2048,15 +1823,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration @@ -2121,28 +1891,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::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::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::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::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price @@ -2176,15 +1941,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration @@ -2209,15 +1969,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -2282,28 +2037,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::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::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::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::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price @@ -2337,15 +2087,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration @@ -2370,15 +2115,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration @@ -2443,28 +2183,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::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::NewFloatingGroupedTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::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::NewFloatingGroupedTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price @@ -2498,15 +2233,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration @@ -2531,15 +2261,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration @@ -2604,28 +2329,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence, - currency: String, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::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::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price @@ -2659,15 +2379,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -2692,15 +2407,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -2765,28 +2475,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::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::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::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::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price @@ -2820,15 +2525,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration @@ -2853,15 +2553,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration @@ -2926,28 +2621,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::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::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::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::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price @@ -2981,15 +2671,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration @@ -3014,15 +2699,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration @@ -3087,28 +2767,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::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::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::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::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price @@ -3142,15 +2817,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration @@ -3175,15 +2845,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration @@ -3248,28 +2913,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::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::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::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::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price @@ -3303,15 +2963,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration @@ -3336,15 +2991,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration @@ -3409,28 +3059,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::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::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::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::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price @@ -3464,15 +3109,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration @@ -3497,15 +3137,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration @@ -3570,28 +3205,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::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::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::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::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price @@ -3625,15 +3255,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration @@ -3658,15 +3283,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration @@ -3731,28 +3351,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::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::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::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::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price @@ -3786,15 +3401,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration @@ -3819,15 +3429,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration @@ -3892,28 +3497,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence, - currency: String, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::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::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price @@ -3947,15 +3547,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -3980,15 +3575,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -4053,28 +3643,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence, - currency: String, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::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::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price @@ -4108,15 +3693,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -4141,15 +3721,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -4214,28 +3789,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence, - currency: String, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::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::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price @@ -4269,15 +3839,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -4302,15 +3867,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -4375,28 +3935,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price @@ -4430,15 +3985,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration @@ -4463,15 +4013,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration @@ -4536,28 +4081,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence, - currency: String, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::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::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price @@ -4591,15 +4131,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration @@ -4624,15 +4159,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration @@ -4697,28 +4227,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::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::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::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::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price @@ -4752,15 +4277,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -4785,15 +4305,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -4858,28 +4373,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::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::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::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::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price @@ -4913,15 +4423,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -4946,15 +4451,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -5019,28 +4519,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::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::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::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::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_cumulative_grouped_bulk_price @@ -5074,15 +4569,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -5107,15 +4597,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -5148,16 +4633,11 @@ module Orb attr_accessor end_date: Orb::Models::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? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, + start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment @@ -5188,17 +4668,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -5222,17 +4697,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount end @@ -5256,17 +4726,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount end @@ -5293,18 +4758,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum end @@ -5328,17 +4788,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum end @@ -5389,20 +4844,15 @@ module Orb 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?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::edit - | Orb::BaseModel data - ) -> void + def initialize: ( + price_interval_id: String, + ?billing_cycle_day: Integer?, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, + ?filter: String?, + ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, + ?usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit @@ -5420,12 +4870,7 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: (effective_date: Time, quantity: Integer) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition end @@ -5455,16 +4900,11 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date ) -> Orb::Models::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 - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment_interval_id: String, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, + ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment diff --git a/sig/orb/models/subscription_price_intervals_response.rbs b/sig/orb/models/subscription_price_intervals_response.rbs index b3716efa..8901dd95 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionPriceIntervalsResponse::status, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_price_intervals_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionPriceIntervalsResponse::status, + trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_price_intervals_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::trial_info end diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index d57f4fc9..0003fa79 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -87,40 +87,35 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, - align_billing_with_plan_change_date: bool?, - auto_collection: bool?, - billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, - change_date: Time?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - default_invoice_memo: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_schedule_plan_change_params - | Orb::BaseModel data - ) -> void + def initialize: ( + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, + ?add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + ?align_billing_with_plan_change_date: bool?, + ?auto_collection: bool?, + ?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + ?change_date: Time?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_schedule_plan_change_params @@ -152,17 +147,12 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, - end_date: Time?, - plan_phase_order: Integer?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, + ?end_date: Time?, + ?plan_phase_order: Integer?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment @@ -193,17 +183,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -227,17 +212,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount end @@ -261,17 +241,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount end @@ -298,18 +273,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum end @@ -333,17 +303,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum end @@ -387,23 +352,18 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::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_id: String?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::add_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::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_id: String?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_price @@ -424,17 +384,12 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::allocation_price @@ -470,17 +425,12 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount @@ -576,29 +526,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price @@ -626,12 +571,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -647,15 +587,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration @@ -680,15 +615,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration @@ -756,29 +686,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price @@ -809,12 +734,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end @@ -830,15 +753,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration @@ -863,15 +781,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration @@ -939,29 +852,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price @@ -998,16 +906,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -1019,15 +922,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -1044,15 +942,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration @@ -1077,15 +970,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration @@ -1153,29 +1041,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price @@ -1206,14 +1089,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1227,16 +1105,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -1253,15 +1126,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration @@ -1286,15 +1154,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration @@ -1362,29 +1225,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price @@ -1415,14 +1273,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1443,17 +1296,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -1470,15 +1318,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration @@ -1503,15 +1346,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration @@ -1579,29 +1417,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price @@ -1612,12 +1445,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -1652,15 +1480,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration @@ -1685,15 +1508,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration @@ -1761,29 +1579,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price @@ -1795,14 +1608,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1820,16 +1628,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -1865,15 +1668,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration @@ -1898,15 +1696,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration @@ -1974,29 +1767,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price @@ -2008,14 +1796,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -2026,12 +1809,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -2067,15 +1848,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration @@ -2100,15 +1876,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration @@ -2176,29 +1947,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price @@ -2232,15 +1998,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration @@ -2265,15 +2026,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -2341,29 +2097,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price @@ -2397,15 +2148,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration @@ -2430,15 +2176,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration @@ -2506,32 +2247,27 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void + + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price + type cadence = :annual | :semi_annual @@ -2562,15 +2298,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration @@ -2595,15 +2326,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration @@ -2671,29 +2397,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price @@ -2727,15 +2448,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration @@ -2760,15 +2476,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration @@ -2836,29 +2547,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price @@ -2892,15 +2598,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration @@ -2925,15 +2626,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration @@ -3001,29 +2697,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price @@ -3057,15 +2748,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration @@ -3090,15 +2776,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration @@ -3166,29 +2847,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price @@ -3222,15 +2898,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration @@ -3255,15 +2926,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration @@ -3331,29 +2997,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price @@ -3387,15 +3048,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration @@ -3420,15 +3076,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration @@ -3496,29 +3147,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -3552,15 +3198,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -3585,15 +3226,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -3661,29 +3297,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price @@ -3717,15 +3348,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration @@ -3750,15 +3376,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration @@ -3826,29 +3447,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -3882,15 +3498,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -3915,15 +3526,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -3991,29 +3597,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -4047,15 +3648,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -4080,15 +3676,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -4156,29 +3747,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -4212,15 +3798,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -4245,15 +3826,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -4321,29 +3897,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_max_group_tiered_package_price @@ -4377,15 +3948,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -4410,15 +3976,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -4486,29 +4047,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -4542,15 +4098,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -4575,15 +4126,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -4651,29 +4197,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_with_display_name_price @@ -4707,15 +4248,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -4740,15 +4276,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -4816,29 +4347,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_tiered_package_price @@ -4872,15 +4398,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration @@ -4905,15 +4426,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration @@ -4953,12 +4469,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration end @@ -4968,12 +4483,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel attr_accessor adjustment_id: String - def initialize: - (adjustment_id: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment - | Orb::BaseModel data - ) -> void + def initialize: (adjustment_id: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment end @@ -4985,12 +4495,10 @@ module Orb attr_accessor price_id: String? - def initialize: - (external_price_id: String?, price_id: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_price_id: String?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price end @@ -5006,15 +4514,10 @@ module Orb attr_accessor replaces_adjustment_id: String - def initialize: - ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, - replaces_adjustment_id: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, + replaces_adjustment_id: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment @@ -5045,17 +4548,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount end @@ -5079,17 +4577,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount end @@ -5113,17 +4606,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount end @@ -5150,18 +4638,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum end @@ -5185,17 +4668,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum end @@ -5236,22 +4714,17 @@ module Orb 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]?, - external_price_id: String?, - fixed_price_quantity: Float?, - maximum_amount: String?, - minimum_amount: String?, - price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, - price_id: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price - | Orb::BaseModel data - ) -> void + def initialize: ( + replaces_price_id: String, + ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price @@ -5272,17 +4745,12 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::allocation_price @@ -5318,17 +4786,12 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount @@ -5424,29 +4887,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::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::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price @@ -5474,12 +4932,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -5495,15 +4948,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration @@ -5528,15 +4976,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration @@ -5604,29 +5047,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::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::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price @@ -5657,12 +5095,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end @@ -5678,15 +5114,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration @@ -5711,15 +5142,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration @@ -5787,29 +5213,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::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::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price @@ -5846,16 +5267,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -5867,15 +5283,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -5892,15 +5303,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration @@ -5925,15 +5331,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration @@ -6001,29 +5402,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::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::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price @@ -6054,14 +5450,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -6075,16 +5466,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -6101,15 +5487,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration @@ -6134,15 +5515,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration @@ -6210,29 +5586,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::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::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price @@ -6263,14 +5634,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -6291,17 +5657,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -6318,15 +5679,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration @@ -6351,15 +5707,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration @@ -6427,29 +5778,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price @@ -6460,12 +5806,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -6500,15 +5841,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration @@ -6533,15 +5869,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration @@ -6609,29 +5940,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price @@ -6643,14 +5969,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -6668,16 +5989,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -6713,15 +6029,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration @@ -6746,15 +6057,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration @@ -6822,29 +6128,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price @@ -6856,14 +6157,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -6874,12 +6170,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -6915,15 +6209,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration @@ -6948,15 +6237,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration @@ -7024,29 +6308,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::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::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price @@ -7080,15 +6359,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration @@ -7113,15 +6387,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration @@ -7189,29 +6458,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::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::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price @@ -7245,15 +6509,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration @@ -7278,15 +6537,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration @@ -7354,29 +6608,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::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::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price @@ -7410,15 +6659,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration @@ -7443,15 +6687,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration @@ -7519,29 +6758,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::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::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price @@ -7575,15 +6809,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration @@ -7608,15 +6837,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration @@ -7684,29 +6908,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::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::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price @@ -7740,15 +6959,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration @@ -7773,15 +6987,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration @@ -7849,29 +7058,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::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::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price @@ -7905,15 +7109,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration @@ -7938,15 +7137,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration @@ -8014,29 +7208,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::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::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price @@ -8070,15 +7259,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration @@ -8103,15 +7287,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration @@ -8179,29 +7358,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::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::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price @@ -8235,15 +7409,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration @@ -8268,15 +7437,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration @@ -8344,29 +7508,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::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::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -8400,15 +7559,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration @@ -8433,15 +7587,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration @@ -8509,29 +7658,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price @@ -8565,15 +7709,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration @@ -8598,15 +7737,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration @@ -8674,29 +7808,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::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::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -8730,15 +7859,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration @@ -8763,15 +7887,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration @@ -8839,29 +7958,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::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::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -8895,15 +8009,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration @@ -8928,15 +8037,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration @@ -9004,29 +8108,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::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::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -9060,15 +8159,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration @@ -9093,15 +8187,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration @@ -9169,29 +8258,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::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::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price @@ -9225,15 +8309,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration @@ -9258,15 +8337,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration @@ -9334,29 +8408,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::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::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -9390,15 +8459,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration @@ -9423,15 +8487,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration @@ -9499,29 +8558,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::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::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price @@ -9555,15 +8609,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration @@ -9588,15 +8637,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration @@ -9664,29 +8708,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::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::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price @@ -9720,15 +8759,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration @@ -9753,15 +8787,10 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration diff --git a/sig/orb/models/subscription_schedule_plan_change_response.rbs b/sig/orb/models/subscription_schedule_plan_change_response.rbs index 85b40673..780f2275 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_schedule_plan_change_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, + trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_schedule_plan_change_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info end diff --git a/sig/orb/models/subscription_trigger_phase_params.rbs b/sig/orb/models/subscription_trigger_phase_params.rbs index 68b1ad54..2382adeb 100644 --- a/sig/orb/models/subscription_trigger_phase_params.rbs +++ b/sig/orb/models/subscription_trigger_phase_params.rbs @@ -12,15 +12,11 @@ module Orb attr_accessor effective_date: Date? - def initialize: - ( - allow_invoice_credit_or_void: bool?, - effective_date: Date?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_trigger_phase_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?allow_invoice_credit_or_void: bool?, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_trigger_phase_params end diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index b2bf7387..551e1086 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionTriggerPhaseResponse::status, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_trigger_phase_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionTriggerPhaseResponse::status, + trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_trigger_phase_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::trial_info end diff --git a/sig/orb/models/subscription_unschedule_cancellation_params.rbs b/sig/orb/models/subscription_unschedule_cancellation_params.rbs index d17dd4b4..1007758e 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_params.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_cancellation_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_unschedule_cancellation_params end diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index 05baff9b..a784c4f5 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_cancellation_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, + trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_cancellation_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info 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 e878f227..9cc2d32e 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 @@ -9,12 +9,10 @@ module Orb attr_accessor price_id: String - def initialize: - (price_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params - | Orb::BaseModel data - ) -> void + def initialize: ( + price_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params 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 1910c047..9b53a75f 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 @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, + trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info 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 65880357..c492a2d0 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_pending_plan_changes_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_params 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 1563ad3c..507c82b2 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_pending_plan_changes_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, + trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info 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 4658c178..a73cddaa 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -28,19 +28,14 @@ module Orb attr_accessor effective_date: Date? - def initialize: - ( - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: bool?, - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, - effective_date: Date?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_fixed_fee_quantity_params - | Orb::BaseModel data - ) -> void + def initialize: ( + price_id: String, + quantity: Float, + ?allow_invoice_credit_or_void: bool?, + ?change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_params 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 a2c5a9e3..59ee47f1 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_update_fixed_fee_quantity_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, + trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval @@ -184,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -396,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration end @@ -435,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval end @@ -515,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval end @@ -547,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule end @@ -582,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval end @@ -618,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval end @@ -669,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval @@ -699,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon end @@ -745,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info end diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index add6de05..6d133517 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -24,18 +24,14 @@ module Orb attr_accessor net_terms: Integer? - def initialize: - ( - auto_collection: bool?, - default_invoice_memo: String?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?auto_collection: bool?, + ?default_invoice_memo: String?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_params end diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index 80af0dae..30cbf434 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -17,15 +17,11 @@ module Orb def shift=: (bool) -> bool - def initialize: - ( - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, - shift: bool, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_trial_params | Orb::BaseModel data - ) -> void + def initialize: ( + trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, + ?shift: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_trial_params diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index 340dbaf3..7561b531 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUpdateTrialResponse::status, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_update_trial_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUpdateTrialResponse::status, + trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_update_trial_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval @@ -183,20 +174,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +213,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +252,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +294,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,20 +334,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end @@ -395,12 +361,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration end @@ -434,19 +399,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +434,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval end @@ -514,19 +469,14 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval end @@ -546,17 +496,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule end @@ -581,18 +526,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval end @@ -617,18 +557,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval end @@ -668,23 +603,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::price_interval @@ -698,12 +628,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,12 +648,11 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon end @@ -744,12 +672,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::trial_info end diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index 6234eea0..eeb3a87d 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -13,14 +13,9 @@ module Orb class UngroupedSubscriptionUsage < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::ungrouped_subscription_usage - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::ungrouped_subscription_usage @@ -38,16 +33,11 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode - def initialize: - ( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data - | Orb::BaseModel data - ) -> void + 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 + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data @@ -58,12 +48,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric end @@ -78,16 +63,11 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - ( - quantity: Float, - timeframe_end: Time, - timeframe_start: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage - | Orb::BaseModel data - ) -> void + def initialize: ( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage end @@ -114,15 +94,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata? - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: Orb::Models::PaginationMetadata? - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::grouped_subscription_usage - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + ?pagination_metadata: Orb::Models::PaginationMetadata? + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::grouped_subscription_usage @@ -143,17 +118,12 @@ module Orb attr_accessor view_mode: Orb::Models::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 - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data - | Orb::BaseModel data - ) -> void + 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 + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data @@ -164,12 +134,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric end @@ -181,12 +146,10 @@ module Orb attr_accessor property_value: String - def initialize: - (property_key: String, property_value: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group - | Orb::BaseModel data - ) -> void + def initialize: ( + property_key: String, + property_value: String + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group end @@ -201,16 +164,11 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - ( - quantity: Float, - timeframe_end: Time, - timeframe_start: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage - | Orb::BaseModel data - ) -> void + def initialize: ( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage end diff --git a/sig/orb/models/subscriptions.rbs b/sig/orb/models/subscriptions.rbs index 63b552cd..866151fd 100644 --- a/sig/orb/models/subscriptions.rbs +++ b/sig/orb/models/subscriptions.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata - def initialize: - ( - data: ::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata - ) -> void - | (?Orb::Models::subscriptions_api | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::Subscription], + pagination_metadata: Orb::Models::PaginationMetadata + ) -> void def to_hash: -> Orb::Models::subscriptions_api end diff --git a/sig/orb/models/top_level_ping_params.rbs b/sig/orb/models/top_level_ping_params.rbs index aa55a1a2..6aa69179 100644 --- a/sig/orb/models/top_level_ping_params.rbs +++ b/sig/orb/models/top_level_ping_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::top_level_ping_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::top_level_ping_params end diff --git a/sig/orb/models/top_level_ping_response.rbs b/sig/orb/models/top_level_ping_response.rbs index 12ff3d6f..104dfa36 100644 --- a/sig/orb/models/top_level_ping_response.rbs +++ b/sig/orb/models/top_level_ping_response.rbs @@ -5,9 +5,7 @@ module Orb class TopLevelPingResponse < Orb::BaseModel attr_accessor response: String - def initialize: - (response: String) -> void - | (?Orb::Models::top_level_ping_response | Orb::BaseModel data) -> void + def initialize: (response: String) -> void def to_hash: -> Orb::Models::top_level_ping_response end diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index fb697cfa..ec7c2511 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -20,15 +20,13 @@ module Orb attr_accessor trial_percentage_discount: Float? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::TrialDiscount::discount_type, - reason: String?, - trial_amount_discount: String?, - trial_percentage_discount: Float? - ) -> void - | (?Orb::Models::trial_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::TrialDiscount::discount_type, + ?reason: String?, + ?trial_amount_discount: String?, + ?trial_percentage_discount: Float? + ) -> void def to_hash: -> Orb::Models::trial_discount diff --git a/sig/orb/models/usage_discount.rbs b/sig/orb/models/usage_discount.rbs index 5976a8f9..c7076dd6 100644 --- a/sig/orb/models/usage_discount.rbs +++ b/sig/orb/models/usage_discount.rbs @@ -17,14 +17,12 @@ module Orb attr_accessor reason: String? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::UsageDiscount::discount_type, - usage_discount: Float, - reason: String? - ) -> void - | (?Orb::Models::usage_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::UsageDiscount::discount_type, + usage_discount: Float, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::usage_discount diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 8623dbec..e91871ce 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -14,9 +14,7 @@ module Orb attr_accessor next_cursor: String? - def initialize: - (has_more: bool, next_cursor: String?) -> void - | (?pagination_metadata | Orb::BaseModel data) -> void + def initialize: (has_more: bool, next_cursor: String?) -> void def to_hash: -> pagination_metadata end diff --git a/sig/orb/pooled_net_requester.rbs b/sig/orb/pooled_net_requester.rbs index b59761e7..dc916f71 100644 --- a/sig/orb/pooled_net_requester.rbs +++ b/sig/orb/pooled_net_requester.rbs @@ -32,6 +32,6 @@ module Orb Orb::PooledNetRequester::request request ) -> [Integer, top, Enumerable[String]] - def initialize: (size: Integer) -> void + def initialize: (?size: Integer) -> void end end diff --git a/sig/orb/resources/alerts.rbs b/sig/orb/resources/alerts.rbs index b2751f80..f86c0812 100644 --- a/sig/orb/resources/alerts.rbs +++ b/sig/orb/resources/alerts.rbs @@ -1,106 +1,65 @@ module Orb module Resources class Alerts - def retrieve: - ( - String alert_id, - ?Orb::Models::AlertRetrieveParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_id, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def retrieve: ( + String alert_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def update: - ( - String alert_configuration_id, - Orb::Models::AlertUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def update: ( + String alert_configuration_id, + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def list: - ( - ?Orb::Models::AlertListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Alert] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: String?, - external_customer_id: String?, - limit: Integer, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Alert] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: String?, + ?external_customer_id: String?, + ?limit: Integer, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Alert] - def create_for_customer: - ( - String customer_id, - Orb::Models::AlertCreateForCustomerParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String customer_id, - currency: String, - type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_customer: ( + String customer_id, + currency: String, + type: Orb::Models::AlertCreateForCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def create_for_external_customer: - ( - String external_customer_id, - Orb::Models::AlertCreateForExternalCustomerParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String external_customer_id, - currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_external_customer: ( + String external_customer_id, + currency: String, + type: Orb::Models::AlertCreateForExternalCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def create_for_subscription: - ( - String subscription_id, - Orb::Models::AlertCreateForSubscriptionParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String subscription_id, - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Orb::Models::AlertCreateForSubscriptionParams::type_, - metric_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_subscription: ( + String subscription_id, + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + type: Orb::Models::AlertCreateForSubscriptionParams::type_, + ?metric_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def disable: - ( - String alert_configuration_id, - ?Orb::Models::AlertDisableParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def disable: ( + String alert_configuration_id, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def enable: - ( - String alert_configuration_id, - ?Orb::Models::AlertEnableParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def enable: ( + String alert_configuration_id, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/coupons.rbs b/sig/orb/resources/coupons.rbs index d6448027..fcfd5de2 100644 --- a/sig/orb/resources/coupons.rbs +++ b/sig/orb/resources/coupons.rbs @@ -3,49 +3,31 @@ module Orb class Coupons attr_reader subscriptions: Orb::Resources::Coupons::Subscriptions - def create: - ( - Orb::Models::CouponCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - discount: Orb::Models::CouponCreateParams::discount, - redemption_code: String, - duration_in_months: Integer?, - max_redemptions: Integer?, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def create: ( + discount: Orb::Models::CouponCreateParams::discount, + redemption_code: String, + ?duration_in_months: Integer?, + ?max_redemptions: Integer?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Coupon - def list: - ( - ?Orb::Models::CouponListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Coupon] - | ( - cursor: String?, - limit: Integer, - redemption_code: String?, - show_archived: bool?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Coupon] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?redemption_code: String?, + ?show_archived: bool?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Coupon] - def archive: - ( - String coupon_id, - ?Orb::Models::CouponArchiveParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - String coupon_id, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def archive: ( + String coupon_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Coupon - def fetch: - ( - String coupon_id, - ?Orb::Models::CouponFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - String coupon_id, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def fetch: ( + String coupon_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::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 8cbb341f..1716e084 100644 --- a/sig/orb/resources/coupons/subscriptions.rbs +++ b/sig/orb/resources/coupons/subscriptions.rbs @@ -2,18 +2,12 @@ module Orb module Resources class Coupons class Subscriptions - def list: - ( - String coupon_id, - ?Orb::Models::Coupons::SubscriptionListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Subscription] - | ( - String coupon_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Subscription] + def list: ( + String coupon_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::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 2efb36b7..c233e425 100644 --- a/sig/orb/resources/credit_notes.rbs +++ b/sig/orb/resources/credit_notes.rbs @@ -1,40 +1,27 @@ module Orb module Resources class CreditNotes - def create: - ( - Orb::Models::CreditNoteCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::CreditNote - | ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: String?, - reason: Orb::Models::CreditNoteCreateParams::reason?, - request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + def create: ( + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + ?memo: String?, + ?reason: Orb::Models::CreditNoteCreateParams::reason?, + ?request_options: Orb::request_opts + ) -> Orb::Models::CreditNote - def list: - ( - ?Orb::Models::CreditNoteListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::CreditNote] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::CreditNote] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::CreditNote] - def fetch: - ( - String credit_note_id, - ?Orb::Models::CreditNoteFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::CreditNote - | ( - String credit_note_id, - request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + def fetch: ( + String credit_note_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::CreditNote def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers.rbs b/sig/orb/resources/customers.rbs index 29b716c5..63759e17 100644 --- a/sig/orb/resources/customers.rbs +++ b/sig/orb/resources/customers.rbs @@ -7,147 +7,106 @@ module Orb attr_reader balance_transactions: Orb::Resources::Customers::BalanceTransactions - def create: - ( - Orb::Models::CustomerCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - email: String, - name: String, - accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, - currency: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - tax_id: Orb::Models::CustomerCreateParams::TaxID?, - timezone: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def create: ( + email: String, + name: String, + ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?currency: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?timezone: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def update: - ( - String customer_id, - ?Orb::Models::CustomerUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String customer_id, - accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateParams::TaxID?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def update: ( + String customer_id, + ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def list: - ( - ?Orb::Models::CustomerListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customer] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customer] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customer] - def delete: - ( - String customer_id, - ?Orb::Models::CustomerDeleteParams | ::Hash[Symbol, top] params - ) -> nil - | (String customer_id, request_options: Orb::request_opts) -> nil + def delete: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> nil - def fetch: - ( - String customer_id, - ?Orb::Models::CustomerFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String customer_id, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def fetch: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def fetch_by_external_id: - ( - String external_customer_id, - ?Orb::Models::CustomerFetchByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String external_customer_id, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def fetch_by_external_id: ( + String external_customer_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def sync_payment_methods_from_gateway: - ( - String external_customer_id, - ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String external_customer_id, - request_options: Orb::request_opts - ) -> nil + def sync_payment_methods_from_gateway: ( + String external_customer_id, + ?request_options: Orb::request_opts + ) -> nil - def sync_payment_methods_from_gateway_by_external_customer_id: - ( - String customer_id, - ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams - | ::Hash[Symbol, top] params - ) -> nil - | (String customer_id, request_options: Orb::request_opts) -> nil + def sync_payment_methods_from_gateway_by_external_customer_id: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> nil - def update_by_external_id: - ( - String id, - ?Orb::Models::CustomerUpdateByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String id, - accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::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?, - tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def update_by_external_id: ( + String id, + ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::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?, + ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/balance_transactions.rbs b/sig/orb/resources/customers/balance_transactions.rbs index 85137425..70ea0827 100644 --- a/sig/orb/resources/customers/balance_transactions.rbs +++ b/sig/orb/resources/customers/balance_transactions.rbs @@ -2,36 +2,24 @@ module Orb module Resources class Customers class BalanceTransactions - def create: - ( - String customer_id, - Orb::Models::Customers::BalanceTransactionCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::BalanceTransactionCreateResponse - | ( - String customer_id, - amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, - description: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::BalanceTransactionCreateResponse + def create: ( + String customer_id, + amount: String, + type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, + ?description: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::BalanceTransactionCreateResponse - def list: - ( - String customer_id, - ?Orb::Models::Customers::BalanceTransactionListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] - | ( - String customer_id, - cursor: String?, - limit: Integer, - operation_time_gt: Time?, - operation_time_gte: Time?, - operation_time_lt: Time?, - operation_time_lte: Time?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] + def list: ( + String customer_id, + ?cursor: String?, + ?limit: Integer, + ?operation_time_gt: Time?, + ?operation_time_gte: Time?, + ?operation_time_lt: Time?, + ?operation_time_lte: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/costs.rbs b/sig/orb/resources/customers/costs.rbs index 4242762a..179952c4 100644 --- a/sig/orb/resources/customers/costs.rbs +++ b/sig/orb/resources/customers/costs.rbs @@ -2,34 +2,23 @@ module Orb module Resources class Customers class Costs - def list: - ( - String customer_id, - ?Orb::Models::Customers::CostListParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::CostListResponse - | ( - String customer_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::CostListResponse + def list: ( + String customer_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::CostListResponse - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::CostListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::CostListByExternalIDResponse - | ( - String external_customer_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::CostListByExternalIDResponse + def list_by_external_id: ( + String external_customer_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::CostListByExternalIDResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits.rbs b/sig/orb/resources/customers/credits.rbs index db420ffd..e0949c98 100644 --- a/sig/orb/resources/customers/credits.rbs +++ b/sig/orb/resources/customers/credits.rbs @@ -6,35 +6,23 @@ module Orb attr_reader top_ups: Orb::Resources::Customers::Credits::TopUps - def list: - ( - String customer_id, - ?Orb::Models::Customers::CreditListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] - | ( - String customer_id, - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] + def list: ( + String customer_id, + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::CreditListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] - | ( - String external_customer_id, - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] + def list_by_external_id: ( + String external_customer_id, + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] 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 683d6179..9cc18093 100644 --- a/sig/orb/resources/customers/credits/ledger.rbs +++ b/sig/orb/resources/customers/credits/ledger.rbs @@ -3,93 +3,69 @@ module Orb class Customers class Credits class Ledger - def list: - ( - String customer_id, - ?Orb::Models::Customers::Credits::LedgerListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] - | ( - String customer_id, - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] + def list: ( + String customer_id, + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] - def create_entry: - ( - String customer_id, - Orb::Models::Customers::Credits::LedgerCreateEntryParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::ledger_create_entry_response - | ( - String customer_id, - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::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 - ) -> Orb::Models::Customers::Credits::ledger_create_entry_response + def create_entry: ( + String customer_id, + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::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 + ) -> Orb::Models::Customers::Credits::ledger_create_entry_response - def create_entry_by_external_id: - ( - String external_customer_id, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response - | ( - String external_customer_id, - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::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 - ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response + def create_entry_by_external_id: ( + String external_customer_id, + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::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 + ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::Credits::LedgerListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] - | ( - String external_customer_id, - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] + def list_by_external_id: ( + String external_customer_id, + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits/top_ups.rbs b/sig/orb/resources/customers/credits/top_ups.rbs index d517047b..ce4afb17 100644 --- a/sig/orb/resources/customers/credits/top_ups.rbs +++ b/sig/orb/resources/customers/credits/top_ups.rbs @@ -3,93 +3,57 @@ module Orb class Customers class Credits class TopUps - def create: - ( - String customer_id, - Orb::Models::Customers::Credits::TopUpCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::TopUpCreateResponse - | ( - String customer_id, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::TopUpCreateResponse + def create: ( + String customer_id, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::TopUpCreateResponse - def list: - ( - String customer_id, - ?Orb::Models::Customers::Credits::TopUpListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] - | ( - String customer_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] + def list: ( + String customer_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] - def delete: - ( - String top_up_id, - Orb::Models::Customers::Credits::TopUpDeleteParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String top_up_id, - customer_id: String, - request_options: Orb::request_opts - ) -> nil + def delete: ( + String top_up_id, + customer_id: String, + ?request_options: Orb::request_opts + ) -> nil - def create_by_external_id: - ( - String external_customer_id, - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse - | ( - String external_customer_id, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse + def create_by_external_id: ( + String external_customer_id, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse - def delete_by_external_id: - ( - String top_up_id, - Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String top_up_id, - external_customer_id: String, - request_options: Orb::request_opts - ) -> nil + def delete_by_external_id: ( + String top_up_id, + external_customer_id: String, + ?request_options: Orb::request_opts + ) -> nil - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::Credits::TopUpListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] - | ( - String external_customer_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] + def list_by_external_id: ( + String external_customer_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/dimensional_price_groups.rbs b/sig/orb/resources/dimensional_price_groups.rbs index f797dda3..c4903dd5 100644 --- a/sig/orb/resources/dimensional_price_groups.rbs +++ b/sig/orb/resources/dimensional_price_groups.rbs @@ -3,41 +3,25 @@ module Orb class DimensionalPriceGroups attr_reader external_dimensional_price_group_id: Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID - def create: - ( - Orb::Models::DimensionalPriceGroupCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - billable_metric_id: String, - dimensions: ::Array[String], - name: String, - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def create: ( + billable_metric_id: String, + dimensions: ::Array[String], + name: String, + ?external_dimensional_price_group_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup - def retrieve: - ( - String dimensional_price_group_id, - ?Orb::Models::DimensionalPriceGroupRetrieveParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - String dimensional_price_group_id, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def retrieve: ( + String dimensional_price_group_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup - def list: - ( - ?Orb::Models::DimensionalPriceGroupListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::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 3fc65c2d..35373d1c 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 @@ -2,16 +2,10 @@ module Orb module Resources class DimensionalPriceGroups class ExternalDimensionalPriceGroupID - def retrieve: - ( - String external_dimensional_price_group_id, - ?Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - String external_dimensional_price_group_id, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def retrieve: ( + String external_dimensional_price_group_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events.rbs b/sig/orb/resources/events.rbs index aa4949c2..5f1a070b 100644 --- a/sig/orb/resources/events.rbs +++ b/sig/orb/resources/events.rbs @@ -5,52 +5,34 @@ module Orb attr_reader volume: Orb::Resources::Events::Volume - def update: - ( - String event_id, - Orb::Models::EventUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventUpdateResponse - | ( - String event_id, - event_name: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::EventUpdateResponse + def update: ( + String event_id, + event_name: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventUpdateResponse - def deprecate: - ( - String event_id, - ?Orb::Models::EventDeprecateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventDeprecateResponse - | ( - String event_id, - request_options: Orb::request_opts - ) -> Orb::Models::EventDeprecateResponse + def deprecate: ( + String event_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventDeprecateResponse - def ingest: - ( - Orb::Models::EventIngestParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventIngestResponse - | ( - events: ::Array[Orb::Models::EventIngestParams::Event], - backfill_id: String?, - debug: bool, - request_options: Orb::request_opts - ) -> Orb::Models::EventIngestResponse + def ingest: ( + events: ::Array[Orb::Models::EventIngestParams::Event], + ?backfill_id: String?, + ?debug: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventIngestResponse - def search: - ( - Orb::Models::EventSearchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventSearchResponse - | ( - event_ids: ::Array[String], - timeframe_end: Time?, - timeframe_start: Time?, - request_options: Orb::request_opts - ) -> Orb::Models::EventSearchResponse + def search: ( + event_ids: ::Array[String], + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventSearchResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events/backfills.rbs b/sig/orb/resources/events/backfills.rbs index f6981101..202666d8 100644 --- a/sig/orb/resources/events/backfills.rbs +++ b/sig/orb/resources/events/backfills.rbs @@ -2,65 +2,37 @@ module Orb module Resources class Events class Backfills - def create: - ( - Orb::Models::Events::BackfillCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillCreateResponse - | ( - timeframe_end: Time, - timeframe_start: Time, - close_time: Time?, - customer_id: String?, - deprecation_filter: String?, - external_customer_id: String?, - replace_existing_events: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillCreateResponse + def create: ( + timeframe_end: Time, + timeframe_start: Time, + ?close_time: Time?, + ?customer_id: String?, + ?deprecation_filter: String?, + ?external_customer_id: String?, + ?replace_existing_events: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillCreateResponse - def list: - ( - ?Orb::Models::Events::BackfillListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] - def close: - ( - String backfill_id, - ?Orb::Models::Events::BackfillCloseParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillCloseResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillCloseResponse + def close: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillCloseResponse - def fetch: - ( - String backfill_id, - ?Orb::Models::Events::BackfillFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillFetchResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillFetchResponse + def fetch: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillFetchResponse - def revert: - ( - String backfill_id, - ?Orb::Models::Events::BackfillRevertParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillRevertResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillRevertResponse + def revert: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillRevertResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events/volume.rbs b/sig/orb/resources/events/volume.rbs index 108ebb1a..0af9b6e2 100644 --- a/sig/orb/resources/events/volume.rbs +++ b/sig/orb/resources/events/volume.rbs @@ -2,17 +2,13 @@ module Orb module Resources class Events class Volume - def list: - ( - Orb::Models::Events::VolumeListParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::EventVolumes - | ( - timeframe_start: Time, - cursor: String?, - limit: Integer, - timeframe_end: Time, - request_options: Orb::request_opts - ) -> Orb::Models::Events::EventVolumes + def list: ( + timeframe_start: Time, + ?cursor: String?, + ?limit: Integer, + ?timeframe_end: Time, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::EventVolumes def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/invoice_line_items.rbs b/sig/orb/resources/invoice_line_items.rbs index eb30a766..bc8f0afb 100644 --- a/sig/orb/resources/invoice_line_items.rbs +++ b/sig/orb/resources/invoice_line_items.rbs @@ -1,19 +1,15 @@ module Orb module Resources class InvoiceLineItems - def create: - ( - Orb::Models::InvoiceLineItemCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::InvoiceLineItemCreateResponse - | ( - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::request_opts - ) -> Orb::Models::InvoiceLineItemCreateResponse + def create: ( + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + ?request_options: Orb::request_opts + ) -> Orb::Models::InvoiceLineItemCreateResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/invoices.rbs b/sig/orb/resources/invoices.rbs index 8bb2b29a..cda5ce59 100644 --- a/sig/orb/resources/invoices.rbs +++ b/sig/orb/resources/invoices.rbs @@ -1,124 +1,82 @@ module Orb module Resources class Invoices - def create: - ( - Orb::Models::InvoiceCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - currency: String, - invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: String?, - discount: Orb::Models::discount?, - external_customer_id: String?, - memo: String?, - metadata: ::Hash[Symbol, String?]?, - will_auto_issue: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def create: ( + currency: String, + invoice_date: Time, + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + ?customer_id: String?, + ?discount: Orb::Models::discount?, + ?external_customer_id: String?, + ?memo: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?will_auto_issue: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def update: - ( - String invoice_id, - ?Orb::Models::InvoiceUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def update: ( + String invoice_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def list: - ( - ?Orb::Models::InvoiceListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Invoice] - | ( - amount: String?, - amount_gt: String?, - amount_lt: String?, - cursor: String?, - customer_id: String?, - date_type: Orb::Models::InvoiceListParams::date_type?, - due_date: Date?, - due_date_window: String?, - due_date_gt: Date?, - due_date_lt: Date?, - external_customer_id: String?, - invoice_date_gt: Time?, - invoice_date_gte: Time?, - invoice_date_lt: Time?, - invoice_date_lte: Time?, - is_recurring: bool?, - limit: Integer, - status: ::Array[Orb::Models::InvoiceListParams::status]?, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Invoice] + def list: ( + ?amount: String?, + ?amount_gt: String?, + ?amount_lt: String?, + ?cursor: String?, + ?customer_id: String?, + ?date_type: Orb::Models::InvoiceListParams::date_type?, + ?due_date: Date?, + ?due_date_window: String?, + ?due_date_gt: Date?, + ?due_date_lt: Date?, + ?external_customer_id: String?, + ?invoice_date_gt: Time?, + ?invoice_date_gte: Time?, + ?invoice_date_lt: Time?, + ?invoice_date_lte: Time?, + ?is_recurring: bool?, + ?limit: Integer, + ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Invoice] - def fetch: - ( - String invoice_id, - ?Orb::Models::InvoiceFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def fetch: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def fetch_upcoming: - ( - Orb::Models::InvoiceFetchUpcomingParams | ::Hash[Symbol, top] params - ) -> Orb::Models::InvoiceFetchUpcomingResponse - | ( - subscription_id: String, - request_options: Orb::request_opts - ) -> Orb::Models::InvoiceFetchUpcomingResponse + def fetch_upcoming: ( + subscription_id: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::InvoiceFetchUpcomingResponse - def issue: - ( - String invoice_id, - ?Orb::Models::InvoiceIssueParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - synchronous: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def issue: ( + String invoice_id, + ?synchronous: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def mark_paid: - ( - String invoice_id, - Orb::Models::InvoiceMarkPaidParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - payment_received_date: Date, - external_id: String?, - notes: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def mark_paid: ( + String invoice_id, + payment_received_date: Date, + ?external_id: String?, + ?notes: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def pay: - ( - String invoice_id, - ?Orb::Models::InvoicePayParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def pay: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def `void`: - ( - String invoice_id, - ?Orb::Models::InvoiceVoidParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def `void`: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/items.rbs b/sig/orb/resources/items.rbs index 9639ee71..22ec66b9 100644 --- a/sig/orb/resources/items.rbs +++ b/sig/orb/resources/items.rbs @@ -1,46 +1,28 @@ module Orb module Resources class Items - def create: - ( - Orb::Models::ItemCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - name: String, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def create: ( + name: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item - def update: - ( - String item_id, - ?Orb::Models::ItemUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - String item_id, - external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, - name: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def update: ( + String item_id, + ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?name: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item - def list: - ( - ?Orb::Models::ItemListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Item] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Item] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Item] - def fetch: - ( - String item_id, - ?Orb::Models::ItemFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - String item_id, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def fetch: ( + String item_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/metrics.rbs b/sig/orb/resources/metrics.rbs index 2054c10d..d9d63f58 100644 --- a/sig/orb/resources/metrics.rbs +++ b/sig/orb/resources/metrics.rbs @@ -1,53 +1,35 @@ module Orb module Resources class Metrics - def create: - ( - Orb::Models::MetricCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - description: String?, - item_id: String, - name: String, - sql: String, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def create: ( + description: String?, + item_id: String, + name: String, + sql: String, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric - def update: - ( - String metric_id, - ?Orb::Models::MetricUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - String metric_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def update: ( + String metric_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric - def list: - ( - ?Orb::Models::MetricListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::BillableMetric] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::BillableMetric] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::BillableMetric] - def fetch: - ( - String metric_id, - ?Orb::Models::MetricFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - String metric_id, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def fetch: ( + String metric_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/plans.rbs b/sig/orb/resources/plans.rbs index c694f1f9..9684ab65 100644 --- a/sig/orb/resources/plans.rbs +++ b/sig/orb/resources/plans.rbs @@ -3,58 +3,40 @@ module Orb class Plans attr_reader external_plan_id: Orb::Resources::Plans::ExternalPlanID - def create: - ( - Orb::Models::PlanCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - currency: String, - name: String, - prices: ::Array[Orb::Models::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 + def create: ( + currency: String, + name: String, + prices: ::Array[Orb::Models::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 - def update: - ( - String plan_id, - ?Orb::Models::PlanUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String plan_id, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def update: ( + String plan_id, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan - def list: - ( - ?Orb::Models::PlanListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Plan] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - status: Orb::Models::PlanListParams::status, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Plan] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?status: Orb::Models::PlanListParams::status, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Plan] - def fetch: - ( - String plan_id, - ?Orb::Models::PlanFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String plan_id, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def fetch: ( + String plan_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::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 c292afc1..41ff425b 100644 --- a/sig/orb/resources/plans/external_plan_id.rbs +++ b/sig/orb/resources/plans/external_plan_id.rbs @@ -2,29 +2,17 @@ module Orb module Resources class Plans class ExternalPlanID - def update: - ( - String other_external_plan_id, - ?Orb::Models::Plans::ExternalPlanIDUpdateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String other_external_plan_id, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def update: ( + String other_external_plan_id, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan - def fetch: - ( - String external_plan_id, - ?Orb::Models::Plans::ExternalPlanIDFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String external_plan_id, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def fetch: ( + String external_plan_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 0ef3b212..a0d0dc75 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -3,102 +3,79 @@ module Orb class Prices attr_reader external_price_id: Orb::Resources::Prices::ExternalPriceID - def create: - ( - Orb::Models::PriceCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - cadence: Orb::Models::PriceCreateParams::cadence, - currency: String, - 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, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def create: ( + cadence: Orb::Models::PriceCreateParams::cadence, + currency: String, + 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, + threshold_total_amount_config: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def update: - ( - String price_id, - ?Orb::Models::PriceUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String price_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def update: ( + String price_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def list: - ( - ?Orb::Models::PriceListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::price] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::price] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::price] - def evaluate: - ( - String price_id, - Orb::Models::PriceEvaluateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::PriceEvaluateResponse - | ( - String price_id, - timeframe_end: Time, - timeframe_start: Time, - customer_id: String?, - external_customer_id: String?, - filter: String?, - grouping_keys: ::Array[String], - request_options: Orb::request_opts - ) -> Orb::Models::PriceEvaluateResponse + def evaluate: ( + String price_id, + timeframe_end: Time, + timeframe_start: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?filter: String?, + ?grouping_keys: ::Array[String], + ?request_options: Orb::request_opts + ) -> Orb::Models::PriceEvaluateResponse - def fetch: - ( - String price_id, - ?Orb::Models::PriceFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String price_id, - request_options: Orb::request_opts - ) -> Orb::Models::price + def fetch: ( + String price_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::price def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/prices/external_price_id.rbs b/sig/orb/resources/prices/external_price_id.rbs index d09e564e..805fb5ed 100644 --- a/sig/orb/resources/prices/external_price_id.rbs +++ b/sig/orb/resources/prices/external_price_id.rbs @@ -2,28 +2,16 @@ module Orb module Resources class Prices class ExternalPriceID - def update: - ( - String external_price_id, - ?Orb::Models::Prices::ExternalPriceIDUpdateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String external_price_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def update: ( + String external_price_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def fetch: - ( - String external_price_id, - ?Orb::Models::Prices::ExternalPriceIDFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String external_price_id, - request_options: Orb::request_opts - ) -> Orb::Models::price + def fetch: ( + String external_price_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::price def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/subscriptions.rbs b/sig/orb/resources/subscriptions.rbs index d3f1243a..18659c8d 100644 --- a/sig/orb/resources/subscriptions.rbs +++ b/sig/orb/resources/subscriptions.rbs @@ -1,281 +1,192 @@ module Orb module Resources class Subscriptions - def create: - ( - ?Orb::Models::SubscriptionCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionCreateResponse - | ( - add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, - align_billing_with_subscription_start_date: bool, - auto_collection: bool?, - aws_region: String?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - customer_id: String?, - default_invoice_memo: String?, - end_date: Time?, - external_customer_id: String?, - external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, - external_marketplace_reporting_id: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, - start_date: Time?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionCreateResponse - - def update: - ( - String subscription_id, - ?Orb::Models::SubscriptionUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Subscription - | ( - String subscription_id, - auto_collection: bool?, - default_invoice_memo: String?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - request_options: Orb::request_opts - ) -> Orb::Models::Subscription - - def list: - ( - ?Orb::Models::SubscriptionListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Subscription] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: ::Array[String]?, - external_customer_id: ::Array[String]?, - limit: Integer, - status: Orb::Models::SubscriptionListParams::status?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Subscription] - - def cancel: - ( - String subscription_id, - Orb::Models::SubscriptionCancelParams | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionCancelResponse - | ( - String subscription_id, - cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, - allow_invoice_credit_or_void: bool?, - cancellation_date: Time?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionCancelResponse - - def fetch: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Subscription - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::Subscription - - def fetch_costs: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchCostsParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionFetchCostsResponse - | ( - String subscription_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionFetchCostsResponse - - def fetch_schedule: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchScheduleParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] - | ( - String subscription_id, - cursor: String?, - limit: Integer, - start_date_gt: Time?, - start_date_gte: Time?, - start_date_lt: Time?, - start_date_lte: Time?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] - - def fetch_usage: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchUsageParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::subscription_usage - | ( - String subscription_id, - billable_metric_id: String?, - first_dimension_key: String?, - first_dimension_value: String?, - granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, - group_by: String?, - second_dimension_key: String?, - second_dimension_value: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::subscription_usage - - def price_intervals: - ( - String subscription_id, - ?Orb::Models::SubscriptionPriceIntervalsParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionPriceIntervalsResponse - | ( - String subscription_id, - add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: bool?, - edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionPriceIntervalsResponse - - def schedule_plan_change: - ( - String subscription_id, - Orb::Models::SubscriptionSchedulePlanChangeParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse - | ( - String subscription_id, - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, - 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?, - change_date: Time?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - default_invoice_memo: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse - - def trigger_phase: - ( - String subscription_id, - ?Orb::Models::SubscriptionTriggerPhaseParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionTriggerPhaseResponse - | ( - String subscription_id, - allow_invoice_credit_or_void: bool?, - effective_date: Date?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionTriggerPhaseResponse - - def unschedule_cancellation: - ( - String subscription_id, - ?Orb::Models::SubscriptionUnscheduleCancellationParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse - - def unschedule_fixed_fee_quantity_updates: - ( - String subscription_id, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse - | ( - String subscription_id, - price_id: String, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse - - def unschedule_pending_plan_changes: - ( - String subscription_id, - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse - - def update_fixed_fee_quantity: - ( - String subscription_id, - Orb::Models::SubscriptionUpdateFixedFeeQuantityParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse - | ( - String subscription_id, - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: bool?, - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, - effective_date: Date?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse - - def update_trial: - ( - String subscription_id, - Orb::Models::SubscriptionUpdateTrialParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUpdateTrialResponse - | ( - String subscription_id, - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, - shift: bool, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUpdateTrialResponse + def create: ( + ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?align_billing_with_subscription_start_date: bool, + ?auto_collection: bool?, + ?aws_region: String?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?customer_id: String?, + ?default_invoice_memo: String?, + ?end_date: Time?, + ?external_customer_id: String?, + ?external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, + ?external_marketplace_reporting_id: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + ?start_date: Time?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionCreateResponse + + def update: ( + String subscription_id, + ?auto_collection: bool?, + ?default_invoice_memo: String?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Subscription + + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: ::Array[String]?, + ?external_customer_id: ::Array[String]?, + ?limit: Integer, + ?status: Orb::Models::SubscriptionListParams::status?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Subscription] + + def cancel: ( + String subscription_id, + cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, + ?allow_invoice_credit_or_void: bool?, + ?cancellation_date: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionCancelResponse + + def fetch: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Subscription + + def fetch_costs: ( + String subscription_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionFetchCostsResponse + + def fetch_schedule: ( + String subscription_id, + ?cursor: String?, + ?limit: Integer, + ?start_date_gt: Time?, + ?start_date_gte: Time?, + ?start_date_lt: Time?, + ?start_date_lte: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] + + def fetch_usage: ( + String subscription_id, + ?billable_metric_id: String?, + ?first_dimension_key: String?, + ?first_dimension_value: String?, + ?granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, + ?group_by: String?, + ?second_dimension_key: String?, + ?second_dimension_value: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::subscription_usage + + def price_intervals: ( + String subscription_id, + ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?allow_invoice_credit_or_void: bool?, + ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::Models::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]?, + ?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?, + ?change_date: Time?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse + + def trigger_phase: ( + String subscription_id, + ?allow_invoice_credit_or_void: bool?, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionTriggerPhaseResponse + + def unschedule_cancellation: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse + + def unschedule_fixed_fee_quantity_updates: ( + String subscription_id, + price_id: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse + + def unschedule_pending_plan_changes: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse + + def update_fixed_fee_quantity: ( + String subscription_id, + price_id: String, + quantity: Float, + ?allow_invoice_credit_or_void: bool?, + ?change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse + + def update_trial: ( + String subscription_id, + trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, + ?shift: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUpdateTrialResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/top_level.rbs b/sig/orb/resources/top_level.rbs index 52df3370..f55dc99b 100644 --- a/sig/orb/resources/top_level.rbs +++ b/sig/orb/resources/top_level.rbs @@ -1,13 +1,9 @@ module Orb module Resources class TopLevel - def ping: - ( - ?Orb::Models::TopLevelPingParams | ::Hash[Symbol, top] params - ) -> Orb::Models::TopLevelPingResponse - | ( - request_options: Orb::request_opts - ) -> Orb::Models::TopLevelPingResponse + def ping: ( + ?request_options: Orb::request_opts + ) -> Orb::Models::TopLevelPingResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/util.rbs b/sig/orb/util.rbs index 046d22f4..0050a9a6 100644 --- a/sig/orb/util.rbs +++ b/sig/orb/util.rbs @@ -20,12 +20,12 @@ module Orb OMIT: top - def self?.deep_merge_lr: (top lhs, top rhs, concat: bool) -> top + def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top def self?.deep_merge: ( *::Array[top] values, - sentinel: top?, - concat: bool + ?sentinel: top?, + ?concat: bool ) -> top def self?.dig: ( @@ -102,12 +102,12 @@ module Orb def self?.decode_content: ( ::Hash[String, String] headers, stream: Enumerable[String], - suppress_error: bool + ?suppress_error: bool ) -> top def self?.fused_enum: ( Enumerable[top] enum, - external: bool + ?external: bool ) { -> void } -> Enumerable[top] diff --git a/sorbet/config b/sorbet/config new file mode 100644 index 00000000..538c1528 --- /dev/null +++ b/sorbet/config @@ -0,0 +1,2 @@ +--dir=rbi +--ignore=test/ From 588fd1de378ca262b9db8b368386a7aab7b2a36f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 23:37:12 +0000 Subject: [PATCH 07/12] feat!: support `for item in stream` style iteration on `Stream`s (#173) --- lib/orb/base_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index bdd0bb63..e3a6bd01 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -437,7 +437,7 @@ def request(req) decoded = Orb::Util.decode_content(response, stream: stream) case req in { stream: Class => st } - st.new(model: model, url: url, status: status, response: response, messages: decoded) + st.new(model: model, url: url, status: status, response: response, stream: decoded) in { page: Class => page } page.new(client: self, req: req, headers: response, page_data: decoded) else From 4b4ddd67f9c8f51e786dd6cd902f0e4677942945 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:17:10 +0000 Subject: [PATCH 08/12] chore(internal): codegen related update (#174) --- lib/orb/base_model.rb | 38 ++++++++++++++++++++++++-------------- rbi/lib/orb/base_model.rbi | 20 +++++++++++++------- rbi/lib/orb/base_page.rbi | 2 -- sig/orb/base_model.rbs | 8 ++++---- 4 files changed, 41 insertions(+), 27 deletions(-) diff --git a/lib/orb/base_model.rb b/lib/orb/base_model.rb index 36762693..bbcb44c2 100644 --- a/lib/orb/base_model.rb +++ b/lib/orb/base_model.rb @@ -182,8 +182,6 @@ class Unknown # rubocop:disable Lint/UnusedMethodArgument - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -233,8 +231,6 @@ def try_strict_coerce(value) class BooleanModel extend Orb::Converter - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -332,8 +328,6 @@ def values = (@values ||= constants.map { const_get(_1) }) private def finalize! = values end - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -528,8 +522,6 @@ def variants # rubocop:disable Style/HashEachMethods # rubocop:disable Style/CaseEquality - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -640,9 +632,18 @@ def try_strict_coerce(value) class ArrayOf include Orb::Converter - private_class_method :new - - def self.[](...) = new(...) + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) # @param other [Object] # @@ -763,9 +764,18 @@ def initialize(type_info, spec = {}) class HashOf include Orb::Converter - private_class_method :new - - def self.[](...) = new(...) + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) # @param other [Object] # diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index 57303cb7..a37937f3 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -308,8 +308,6 @@ module Orb abstract! final! - Elem = type_member(:out) - sig(:final) do params( type_info: T.any( @@ -360,7 +358,7 @@ module Orb end # @api private - sig(:final) { returns(Elem) } + sig(:final) { returns(T.anything) } protected def item_type end @@ -389,8 +387,6 @@ module Orb abstract! final! - Elem = type_member(:out) - sig(:final) do params( type_info: T.any( @@ -441,7 +437,7 @@ module Orb end # @api private - sig(:final) { returns(Elem) } + sig(:final) { returns(T.anything) } protected def item_type end @@ -623,7 +619,17 @@ module Orb def to_h end - alias_method :to_hash, :to_h + # Returns a Hash of the data underlying this object. O(1) + # + # Keys are Symbols and values are the raw values from the response. The return + # value indicates which values were ever set on the object. i.e. there will be a + # key in this hash if they ever were, even if the set value was nil. + # + # This method is not recursive. The returned value is shared by the object, so it + # should not be mutated. + sig { overridable.returns(T::Hash[Symbol, T.anything]) } + def to_hash + end sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.anything]) } def deconstruct_keys(keys) diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi index 21e916b4..0a706852 100644 --- a/rbi/lib/orb/base_page.rbi +++ b/rbi/lib/orb/base_page.rbi @@ -20,8 +20,6 @@ module Orb def to_enum end - alias_method :enum_for, :to_enum - # @api private sig do params( diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs index 0a6f03d1..6e2084aa 100644 --- a/sig/orb/base_model.rbs +++ b/sig/orb/base_model.rbs @@ -115,7 +115,7 @@ module Orb ) -> ([true, top, nil] | [false, bool, Integer]) end - class ArrayOf[Elem] + class ArrayOf include Orb::Converter def self.[]: ( @@ -137,7 +137,7 @@ module Orb top value ) -> ([true, top, nil] | [false, bool, Integer]) - def item_type: -> Elem + def item_type: -> top def initialize: ( ::Hash[Symbol, top] @@ -147,7 +147,7 @@ module Orb ) -> void end - class HashOf[Elem] + class HashOf include Orb::Converter def self.[]: ( @@ -169,7 +169,7 @@ module Orb top value ) -> ([true, top, nil] | [false, bool, Integer]) - def item_type: -> Elem + def item_type: -> top def initialize: ( ::Hash[Symbol, top] From a538d15c8b24fc94f3fd2088333620369a944620 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 20:16:24 +0000 Subject: [PATCH 09/12] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 85c391c8..d1b66331 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-aeb94d91af916dbff0132ee7c4501df9223609b19fef0398a1a495e7a432ee36.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-36a6db97756e8658369c9af3c0ac532ecacb032e5b8f6211094dcb4052943ff3.yml From 19ab2d6ba75461fd1f96598b480932e152407157 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 08:48:56 +0000 Subject: [PATCH 10/12] chore: switch to prettier looking sorbet annotations (#175) --- README.md | 2 + Rakefile | 21 +- lib/orb.rb | 15 + lib/orb/base_client.rb | 2 +- lib/orb/base_model.rb | 516 +- lib/orb/base_page.rb | 36 +- lib/orb/models/alert.rb | 12 +- .../alert_create_for_customer_params.rb | 12 +- ...ert_create_for_external_customer_params.rb | 12 +- .../alert_create_for_subscription_params.rb | 12 +- lib/orb/models/amount_discount.rb | 11 +- lib/orb/models/billable_metric.rb | 11 +- lib/orb/models/billing_cycle_relative_date.rb | 11 +- lib/orb/models/coupon.rb | 5 +- lib/orb/models/coupon_create_params.rb | 5 +- lib/orb/models/credit_note.rb | 55 +- lib/orb/models/credit_note_create_params.rb | 12 +- lib/orb/models/customer.rb | 45 +- lib/orb/models/customer_create_params.rb | 39 +- .../customer_update_by_external_id_params.rb | 39 +- lib/orb/models/customer_update_params.rb | 39 +- .../balance_transaction_create_params.rb | 11 +- .../balance_transaction_create_response.rb | 22 +- .../balance_transaction_list_response.rb | 22 +- .../cost_list_by_external_id_params.rb | 12 +- lib/orb/models/customers/cost_list_params.rb | 12 +- .../credit_list_by_external_id_response.rb | 11 +- .../models/customers/credit_list_response.rb | 11 +- ...dger_create_entry_by_external_id_params.rb | 23 +- ...er_create_entry_by_external_id_response.rb | 83 +- .../credits/ledger_create_entry_params.rb | 23 +- .../credits/ledger_create_entry_response.rb | 83 +- .../ledger_list_by_external_id_params.rb | 22 +- .../ledger_list_by_external_id_response.rb | 83 +- .../customers/credits/ledger_list_params.rb | 22 +- .../customers/credits/ledger_list_response.rb | 83 +- .../top_up_create_by_external_id_params.rb | 12 +- .../top_up_create_by_external_id_response.rb | 12 +- .../customers/credits/top_up_create_params.rb | 12 +- .../credits/top_up_create_response.rb | 12 +- .../top_up_list_by_external_id_response.rb | 12 +- .../customers/credits/top_up_list_response.rb | 12 +- lib/orb/models/discount.rb | 5 +- lib/orb/models/evaluate_price_group.rb | 5 +- .../models/events/backfill_close_response.rb | 12 +- .../models/events/backfill_create_response.rb | 12 +- .../models/events/backfill_fetch_response.rb | 12 +- .../models/events/backfill_list_response.rb | 12 +- .../models/events/backfill_revert_response.rb | 12 +- lib/orb/models/invoice.rb | 88 +- lib/orb/models/invoice_create_params.rb | 11 +- .../models/invoice_fetch_upcoming_response.rb | 88 +- lib/orb/models/invoice_level_discount.rb | 5 +- .../invoice_line_item_create_response.rb | 10 +- lib/orb/models/invoice_list_params.rb | 22 +- lib/orb/models/item.rb | 11 +- lib/orb/models/item_update_params.rb | 11 +- lib/orb/models/percentage_discount.rb | 11 +- lib/orb/models/plan.rb | 38 +- lib/orb/models/plan_create_params.rb | 917 +- lib/orb/models/plan_list_params.rb | 12 +- lib/orb/models/price.rb | 1238 +- lib/orb/models/price_create_params.rb | 47 +- lib/orb/models/subscription.rb | 21 +- lib/orb/models/subscription_cancel_params.rb | 12 +- .../models/subscription_cancel_response.rb | 21 +- lib/orb/models/subscription_create_params.rb | 1882 +- .../models/subscription_create_response.rb | 21 +- .../models/subscription_fetch_costs_params.rb | 12 +- .../models/subscription_fetch_usage_params.rb | 24 +- lib/orb/models/subscription_list_params.rb | 11 +- .../subscription_price_intervals_params.rb | 1085 +- .../subscription_price_intervals_response.rb | 21 +- ...ubscription_schedule_plan_change_params.rb | 1893 +- ...scription_schedule_plan_change_response.rb | 21 +- .../subscription_trigger_phase_response.rb | 21 +- ...iption_unschedule_cancellation_response.rb | 21 +- ...ule_fixed_fee_quantity_updates_response.rb | 21 +- ...nschedule_pending_plan_changes_response.rb | 21 +- ...iption_update_fixed_fee_quantity_params.rb | 12 +- ...tion_update_fixed_fee_quantity_response.rb | 21 +- .../subscription_update_trial_params.rb | 25 +- .../subscription_update_trial_response.rb | 21 +- lib/orb/models/subscription_usage.rb | 27 +- lib/orb/models/trial_discount.rb | 11 +- lib/orb/models/usage_discount.rb | 11 +- lib/orb/page.rb | 36 +- lib/orb/request_options.rb | 2 +- lib/orb/resources/subscriptions.rb | 2 +- rbi/lib/orb/base_client.rbi | 14 +- rbi/lib/orb/base_model.rbi | 224 +- rbi/lib/orb/client.rbi | 45 +- rbi/lib/orb/errors.rbi | 49 +- rbi/lib/orb/models/alert.rbi | 181 +- .../alert_create_for_customer_params.rbi | 67 +- ...rt_create_for_external_customer_params.rbi | 70 +- .../alert_create_for_subscription_params.rbi | 60 +- rbi/lib/orb/models/alert_disable_params.rbi | 9 +- rbi/lib/orb/models/alert_enable_params.rbi | 9 +- rbi/lib/orb/models/alert_list_params.rbi | 66 +- rbi/lib/orb/models/alert_retrieve_params.rbi | 7 +- rbi/lib/orb/models/alert_update_params.rbi | 21 +- rbi/lib/orb/models/amount_discount.rbi | 49 +- rbi/lib/orb/models/billable_metric.rbi | 70 +- .../models/billing_cycle_relative_date.rbi | 17 +- rbi/lib/orb/models/coupon.rbi | 64 +- rbi/lib/orb/models/coupon_archive_params.rbi | 7 +- rbi/lib/orb/models/coupon_create_params.rbi | 87 +- rbi/lib/orb/models/coupon_fetch_params.rbi | 7 +- rbi/lib/orb/models/coupon_list_params.rbi | 31 +- .../coupons/subscription_list_params.rbi | 17 +- rbi/lib/orb/models/credit_note.rbi | 511 +- .../orb/models/credit_note_create_params.rbi | 74 +- .../orb/models/credit_note_fetch_params.rbi | 7 +- .../orb/models/credit_note_list_params.rbi | 45 +- rbi/lib/orb/models/customer.rbi | 830 +- rbi/lib/orb/models/customer_create_params.rbi | 801 +- rbi/lib/orb/models/customer_delete_params.rbi | 7 +- .../customer_fetch_by_external_id_params.rbi | 7 +- rbi/lib/orb/models/customer_fetch_params.rbi | 7 +- rbi/lib/orb/models/customer_list_params.rbi | 45 +- ...gateway_by_external_customer_id_params.rbi | 7 +- ...nc_payment_methods_from_gateway_params.rbi | 7 +- .../customer_update_by_external_id_params.rbi | 811 +- rbi/lib/orb/models/customer_update_params.rbi | 794 +- .../balance_transaction_create_params.rbi | 48 +- .../balance_transaction_create_response.rbi | 186 +- .../balance_transaction_list_params.rbi | 45 +- .../balance_transaction_list_response.rbi | 178 +- .../cost_list_by_external_id_params.rbi | 56 +- .../cost_list_by_external_id_response.rbi | 155 +- .../orb/models/customers/cost_list_params.rbi | 53 +- .../models/customers/cost_list_response.rbi | 152 +- .../credit_list_by_external_id_params.rbi | 32 +- .../credit_list_by_external_id_response.rbi | 75 +- .../models/customers/credit_list_params.rbi | 32 +- .../models/customers/credit_list_response.rbi | 74 +- ...ger_create_entry_by_external_id_params.rbi | 209 +- ...r_create_entry_by_external_id_response.rbi | 1483 +- .../credits/ledger_create_entry_params.rbi | 187 +- .../credits/ledger_create_entry_response.rbi | 1477 +- .../ledger_list_by_external_id_params.rbi | 170 +- .../ledger_list_by_external_id_response.rbi | 1485 +- .../customers/credits/ledger_list_params.rbi | 149 +- .../credits/ledger_list_response.rbi | 1457 +- .../top_up_create_by_external_id_params.rbi | 139 +- .../top_up_create_by_external_id_response.rbi | 147 +- .../credits/top_up_create_params.rbi | 126 +- .../credits/top_up_create_response.rbi | 125 +- .../top_up_delete_by_external_id_params.rbi | 9 +- .../credits/top_up_delete_params.rbi | 15 +- .../top_up_list_by_external_id_params.rbi | 17 +- .../top_up_list_by_external_id_response.rbi | 137 +- .../customers/credits/top_up_list_params.rbi | 17 +- .../credits/top_up_list_response.rbi | 124 +- .../orb/models/dimensional_price_group.rbi | 42 +- .../dimensional_price_group_create_params.rbi | 40 +- .../dimensional_price_group_list_params.rbi | 17 +- ...imensional_price_group_retrieve_params.rbi | 7 +- .../orb/models/dimensional_price_groups.rbi | 22 +- ...nsional_price_group_id_retrieve_params.rbi | 7 +- rbi/lib/orb/models/discount.rbi | 15 +- rbi/lib/orb/models/evaluate_price_group.rbi | 39 +- rbi/lib/orb/models/event_deprecate_params.rbi | 7 +- .../orb/models/event_deprecate_response.rbi | 7 +- rbi/lib/orb/models/event_ingest_params.rbi | 71 +- rbi/lib/orb/models/event_ingest_response.rbi | 53 +- rbi/lib/orb/models/event_search_params.rbi | 23 +- rbi/lib/orb/models/event_search_response.rbi | 60 +- rbi/lib/orb/models/event_update_params.rbi | 37 +- rbi/lib/orb/models/event_update_response.rbi | 7 +- .../models/events/backfill_close_params.rbi | 7 +- .../models/events/backfill_close_response.rbi | 109 +- .../models/events/backfill_create_params.rbi | 52 +- .../events/backfill_create_response.rbi | 110 +- .../models/events/backfill_fetch_params.rbi | 7 +- .../models/events/backfill_fetch_response.rbi | 109 +- .../models/events/backfill_list_params.rbi | 17 +- .../models/events/backfill_list_response.rbi | 109 +- .../models/events/backfill_revert_params.rbi | 7 +- .../events/backfill_revert_response.rbi | 110 +- rbi/lib/orb/models/events/event_volumes.rbi | 32 +- .../orb/models/events/volume_list_params.rbi | 32 +- rbi/lib/orb/models/invoice.rbi | 2115 +- rbi/lib/orb/models/invoice_create_params.rbi | 187 +- rbi/lib/orb/models/invoice_fetch_params.rbi | 7 +- .../models/invoice_fetch_upcoming_params.rbi | 12 +- .../invoice_fetch_upcoming_response.rbi | 2242 +- rbi/lib/orb/models/invoice_issue_params.rbi | 13 +- rbi/lib/orb/models/invoice_level_discount.rbi | 13 +- .../invoice_line_item_create_params.rbi | 44 +- .../invoice_line_item_create_response.rbi | 902 +- rbi/lib/orb/models/invoice_list_params.rbi | 188 +- .../orb/models/invoice_mark_paid_params.rbi | 23 +- rbi/lib/orb/models/invoice_pay_params.rbi | 7 +- rbi/lib/orb/models/invoice_update_params.rbi | 12 +- rbi/lib/orb/models/invoice_void_params.rbi | 7 +- rbi/lib/orb/models/item.rbi | 100 +- rbi/lib/orb/models/item_create_params.rbi | 9 +- rbi/lib/orb/models/item_fetch_params.rbi | 7 +- rbi/lib/orb/models/item_list_params.rbi | 17 +- rbi/lib/orb/models/item_update_params.rbi | 102 +- rbi/lib/orb/models/metric_create_params.rbi | 40 +- rbi/lib/orb/models/metric_fetch_params.rbi | 7 +- rbi/lib/orb/models/metric_list_params.rbi | 45 +- rbi/lib/orb/models/metric_update_params.rbi | 12 +- rbi/lib/orb/models/pagination_metadata.rbi | 14 +- rbi/lib/orb/models/percentage_discount.rbi | 49 +- rbi/lib/orb/models/plan.rbi | 881 +- rbi/lib/orb/models/plan_create_params.rbi | 9239 ++++--- rbi/lib/orb/models/plan_fetch_params.rbi | 7 +- rbi/lib/orb/models/plan_list_params.rbi | 78 +- rbi/lib/orb/models/plan_update_params.rbi | 19 +- .../plans/external_plan_id_fetch_params.rbi | 7 +- .../plans/external_plan_id_update_params.rbi | 19 +- rbi/lib/orb/models/price.rbi | 14873 +++++------ rbi/lib/orb/models/price_create_params.rbi | 777 +- rbi/lib/orb/models/price_evaluate_params.rbi | 45 +- .../orb/models/price_evaluate_response.rbi | 10 +- rbi/lib/orb/models/price_fetch_params.rbi | 7 +- rbi/lib/orb/models/price_list_params.rbi | 17 +- rbi/lib/orb/models/price_update_params.rbi | 12 +- .../prices/external_price_id_fetch_params.rbi | 7 +- .../external_price_id_update_params.rbi | 12 +- rbi/lib/orb/models/subscription.rbi | 1040 +- .../orb/models/subscription_cancel_params.rbi | 51 +- .../models/subscription_cancel_response.rbi | 1054 +- .../orb/models/subscription_create_params.rbi | 20943 ++++++++------- .../models/subscription_create_response.rbi | 1054 +- .../subscription_fetch_costs_params.rbi | 54 +- .../subscription_fetch_costs_response.rbi | 152 +- .../orb/models/subscription_fetch_params.rbi | 7 +- .../subscription_fetch_schedule_params.rbi | 45 +- .../subscription_fetch_schedule_response.rbi | 55 +- .../subscription_fetch_usage_params.rbi | 118 +- .../orb/models/subscription_list_params.rbi | 91 +- .../subscription_price_intervals_params.rbi | 11636 +++++---- .../subscription_price_intervals_response.rbi | 1062 +- ...bscription_schedule_plan_change_params.rbi | 21140 +++++++++------- ...cription_schedule_plan_change_response.rbi | 1065 +- .../subscription_trigger_phase_params.rbi | 16 +- .../subscription_trigger_phase_response.rbi | 1056 +- ...ription_unschedule_cancellation_params.rbi | 7 +- ...ption_unschedule_cancellation_response.rbi | 1075 +- ...dule_fixed_fee_quantity_updates_params.rbi | 9 +- ...le_fixed_fee_quantity_updates_response.rbi | 1116 +- ...unschedule_pending_plan_changes_params.rbi | 7 +- ...schedule_pending_plan_changes_response.rbi | 1087 +- ...ption_update_fixed_fee_quantity_params.rbi | 78 +- ...ion_update_fixed_fee_quantity_response.rbi | 1075 +- .../orb/models/subscription_update_params.rbi | 40 +- .../subscription_update_trial_params.rbi | 52 +- .../subscription_update_trial_response.rbi | 1057 +- rbi/lib/orb/models/subscription_usage.rbi | 286 +- rbi/lib/orb/models/subscriptions.rbi | 20 +- rbi/lib/orb/models/top_level_ping_params.rbi | 7 +- .../orb/models/top_level_ping_response.rbi | 7 +- rbi/lib/orb/models/trial_discount.rbi | 56 +- rbi/lib/orb/models/usage_discount.rbi | 49 +- rbi/lib/orb/page.rbi | 28 +- rbi/lib/orb/request_options.rbi | 66 +- rbi/lib/orb/resources/alerts.rbi | 35 +- rbi/lib/orb/resources/coupons.rbi | 18 +- .../orb/resources/coupons/subscriptions.rbi | 2 +- rbi/lib/orb/resources/credit_notes.rbi | 10 +- rbi/lib/orb/resources/customers.rbi | 76 +- .../customers/balance_transactions.rbi | 6 +- rbi/lib/orb/resources/customers/costs.rbi | 8 +- rbi/lib/orb/resources/customers/credits.rbi | 10 +- .../resources/customers/credits/ledger.rbi | 35 +- .../resources/customers/credits/top_ups.rbi | 20 +- .../resources/dimensional_price_groups.rbi | 9 +- .../external_dimensional_price_group_id.rbi | 2 +- rbi/lib/orb/resources/events.rbi | 19 +- rbi/lib/orb/resources/events/backfills.rbi | 10 +- rbi/lib/orb/resources/events/volume.rbi | 2 +- rbi/lib/orb/resources/invoice_line_items.rbi | 2 +- rbi/lib/orb/resources/invoices.rbi | 34 +- rbi/lib/orb/resources/items.rbi | 21 +- rbi/lib/orb/resources/metrics.rbi | 11 +- rbi/lib/orb/resources/plans.rbi | 19 +- .../orb/resources/plans/external_plan_id.rbi | 4 +- rbi/lib/orb/resources/prices.rbi | 42 +- .../resources/prices/external_price_id.rbi | 4 +- rbi/lib/orb/resources/subscriptions.rbi | 107 +- rbi/lib/orb/resources/top_level.rbi | 2 +- rbi/lib/orb/util.rbi | 6 +- sig/orb/base_model.rbs | 28 +- sig/orb/models/alert.rbs | 6 +- .../alert_create_for_customer_params.rbs | 6 +- ...rt_create_for_external_customer_params.rbs | 6 +- .../alert_create_for_subscription_params.rbs | 6 +- sig/orb/models/amount_discount.rbs | 6 +- sig/orb/models/billable_metric.rbs | 6 +- .../models/billing_cycle_relative_date.rbs | 6 +- sig/orb/models/coupon.rbs | 6 +- sig/orb/models/coupon_create_params.rbs | 6 +- sig/orb/models/credit_note.rbs | 30 +- sig/orb/models/credit_note_create_params.rbs | 6 +- sig/orb/models/customer.rbs | 24 +- sig/orb/models/customer_create_params.rbs | 24 +- .../customer_update_by_external_id_params.rbs | 24 +- sig/orb/models/customer_update_params.rbs | 24 +- .../balance_transaction_create_params.rbs | 6 +- .../balance_transaction_create_response.rbs | 12 +- .../balance_transaction_list_response.rbs | 12 +- .../cost_list_by_external_id_params.rbs | 6 +- sig/orb/models/customers/cost_list_params.rbs | 6 +- .../credit_list_by_external_id_response.rbs | 6 +- .../models/customers/credit_list_response.rbs | 6 +- ...ger_create_entry_by_external_id_params.rbs | 12 +- ...r_create_entry_by_external_id_response.rbs | 48 +- .../credits/ledger_create_entry_params.rbs | 12 +- .../credits/ledger_create_entry_response.rbs | 48 +- .../ledger_list_by_external_id_params.rbs | 12 +- .../ledger_list_by_external_id_response.rbs | 48 +- .../customers/credits/ledger_list_params.rbs | 12 +- .../credits/ledger_list_response.rbs | 48 +- .../top_up_create_by_external_id_params.rbs | 6 +- .../top_up_create_by_external_id_response.rbs | 6 +- .../credits/top_up_create_params.rbs | 6 +- .../credits/top_up_create_response.rbs | 6 +- .../top_up_list_by_external_id_response.rbs | 6 +- .../credits/top_up_list_response.rbs | 6 +- sig/orb/models/discount.rbs | 6 +- sig/orb/models/evaluate_price_group.rbs | 6 +- .../models/events/backfill_close_response.rbs | 6 +- .../events/backfill_create_response.rbs | 6 +- .../models/events/backfill_fetch_response.rbs | 6 +- .../models/events/backfill_list_response.rbs | 6 +- .../events/backfill_revert_response.rbs | 6 +- sig/orb/models/events/event_volumes.rbs | 1 - sig/orb/models/invoice.rbs | 54 +- sig/orb/models/invoice_create_params.rbs | 6 +- .../invoice_fetch_upcoming_response.rbs | 54 +- sig/orb/models/invoice_level_discount.rbs | 6 +- .../invoice_line_item_create_response.rbs | 12 +- sig/orb/models/invoice_list_params.rbs | 12 +- sig/orb/models/item.rbs | 6 +- sig/orb/models/item_update_params.rbs | 6 +- sig/orb/models/percentage_discount.rbs | 6 +- sig/orb/models/plan.rbs | 24 +- sig/orb/models/plan_create_params.rbs | 462 +- sig/orb/models/plan_list_params.rbs | 6 +- sig/orb/models/price.rbs | 678 +- sig/orb/models/price_create_params.rbs | 24 +- sig/orb/models/subscription.rbs | 18 +- sig/orb/models/subscription_cancel_params.rbs | 6 +- .../models/subscription_cancel_response.rbs | 18 +- sig/orb/models/subscription_create_params.rbs | 954 +- .../models/subscription_create_response.rbs | 18 +- .../subscription_fetch_costs_params.rbs | 6 +- .../subscription_fetch_usage_params.rbs | 12 +- sig/orb/models/subscription_list_params.rbs | 6 +- .../subscription_price_intervals_params.rbs | 576 +- .../subscription_price_intervals_response.rbs | 18 +- ...bscription_schedule_plan_change_params.rbs | 960 +- ...cription_schedule_plan_change_response.rbs | 18 +- .../subscription_trigger_phase_response.rbs | 18 +- ...ption_unschedule_cancellation_response.rbs | 18 +- ...le_fixed_fee_quantity_updates_response.rbs | 18 +- ...schedule_pending_plan_changes_response.rbs | 18 +- ...ption_update_fixed_fee_quantity_params.rbs | 6 +- ...ion_update_fixed_fee_quantity_response.rbs | 18 +- .../subscription_update_trial_params.rbs | 16 +- .../subscription_update_trial_response.rbs | 18 +- sig/orb/models/subscription_usage.rbs | 18 +- sig/orb/models/trial_discount.rbs | 6 +- sig/orb/models/usage_discount.rbs | 6 +- sig/orb/request_options.rbs | 4 +- test/orb/base_model_test.rb | 24 +- 371 files changed, 61839 insertions(+), 66561 deletions(-) diff --git a/README.md b/README.md index 6905b70d..8021caaa 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,8 @@ orb.customers.create( ## Sorbet Support +**This library emits an intentional warning under the [`tapioca` toolchain](https://github.com/Shopify/tapioca)**. This is normal, and does not impact functionality. + This library is written with [Sorbet type definitions](https://sorbet.org/docs/rbi). However, there is no runtime dependency on the `sorbet-runtime`. What this means is that while you can use Sorbet to type check your code statically, and benefit from the [Sorbet Language Server](https://sorbet.org/docs/lsp) in your editor, there is no runtime type checking and execution overhead from Sorbet itself. diff --git a/Rakefile b/Rakefile index 27e4b686..5f3bd994 100644 --- a/Rakefile +++ b/Rakefile @@ -35,24 +35,25 @@ multitask(:syntax_tree) do inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? %w[-i''] : %w[-i] uuid = SecureRandom.uuid - # `syntax_tree` has trouble with `rbs`'s class aliases + # `syntax_tree` has trouble with `rbs`'s class & module aliases sed = xargs + %w[sed -E] + inplace + %w[-e] - # annotate class aliases with a unique comment - pre = sed + ["s/class ([^ ]+) = (.+$)/# #{uuid}\\n\\1: \\2/", "--"] + # annotate unprocessable aliases with a unique comment + pre = sed + ["s/(class|module) ([^ ]+) = (.+$)/# \\1 #{uuid}\\n\\2: \\3/", "--"] fmt = xargs + %w[stree write --plugin=rbs --] - # remove the unique comment and transform class aliases to type aliases + # remove the unique comment and unprocessable aliases to type aliases subst = <<~SED - s/# #{uuid}// + s/# (class|module) #{uuid}/\\1/ t l1 b + : l1 - n - s/([^ :]+): (.+$)/class \\1 = \\2/ + N + s/\\n *([^:]+): (.+)$/ \\1 = \\2/ SED - # 1. delete the unique comment - # 2. if deletion happened, branch to label `l1`, else continue - # 3. transform the class alias to a type alias at label `l1` + # for each line: + # 1. try transform the unique comment into `class | module`, if successful, branch to label `l1`. + # 2. at label `l1`, join previously annotated line with `class | module` information. pst = sed + [subst, "--"] # transform class aliases to type aliases, which syntax tree has no trouble with diff --git a/lib/orb.rb b/lib/orb.rb index 8062aaf6..ec71d656 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -1,5 +1,20 @@ # frozen_string_literal: true +# We already ship the preferred sorbet manifests in the package itself. +# `tapioca` currently does not offer us a way to opt out of unnecessary compilation. +if defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") } + Warning.warn( + <<~WARN + \n + ⚠️ skipped loading of "orb" gem under `tapioca`. + + This message is normal and expected if you are running a `tapioca` command, and does not impact `.rbi` generation. + \n + WARN + ) + return +end + # Standard libraries. require "cgi" require "date" diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index e3a6bd01..4ec8d462 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -220,7 +220,7 @@ def initialize( # # @option opts [Hash{String=>String, nil}, nil] :extra_headers # - # @option opts [Hash{Symbol=>Object}, nil] :extra_body + # @option opts [Object, nil] :extra_body # # @option opts [Integer, nil] :max_retries # diff --git a/lib/orb/base_model.rb b/lib/orb/base_model.rb index bbcb44c2..63548de6 100644 --- a/lib/orb/base_model.rb +++ b/lib/orb/base_model.rb @@ -48,7 +48,7 @@ def type_info(spec) type_info(spec.slice(:const, :enum, :union).first&.last) in Proc spec - in Orb::Converter | Class | Symbol + in Orb::Converter | Module | Symbol -> { spec } in true | false -> { Orb::BooleanModel } @@ -81,7 +81,7 @@ def coerce(target, value) else value end - in Class + in Module case target in -> { _1 <= NilClass } nil @@ -144,7 +144,7 @@ def try_strict_coerce(target, value) else [false, false, 0] end - in Class + in Module case [target, value] in [-> { _1 <= NilClass }, _] [true, nil, value.nil? ? 1 : 0] @@ -276,8 +276,6 @@ def try_strict_coerce(value) # @api private # - # @abstract - # # A value from among a specified list of options. OpenAPI enum values map to Ruby # values in the SDK as follows: # @@ -290,97 +288,89 @@ def try_strict_coerce(value) # values safely. # # @example - # ```ruby - # # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate` - # case billing_cycle_relative_date - # when Orb::Models::BillingCycleRelativeDate::START_OF_TERM - # # ... - # when Orb::Models::BillingCycleRelativeDate::END_OF_TERM - # # ... - # else - # puts(billing_cycle_relative_date) - # end - # ``` + # # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate` + # case billing_cycle_relative_date + # when Orb::Models::BillingCycleRelativeDate::START_OF_TERM + # # ... + # when Orb::Models::BillingCycleRelativeDate::END_OF_TERM + # # ... + # else + # puts(billing_cycle_relative_date) + # end # # @example - # ```ruby - # case billing_cycle_relative_date - # in :start_of_term - # # ... - # in :end_of_term - # # ... - # else - # puts(billing_cycle_relative_date) - # end - # ``` - class Enum - extend Orb::Converter + # case billing_cycle_relative_date + # in :start_of_term + # # ... + # in :end_of_term + # # ... + # else + # puts(billing_cycle_relative_date) + # end + module Enum + include Orb::Converter - class << self - # All of the valid Symbol values for this enum. - # - # @return [Array] - def values = (@values ||= constants.map { const_get(_1) }) + # All of the valid Symbol values for this enum. + # + # @return [Array] + def values = (@values ||= constants.map { const_get(_1) }) - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - private def finalize! = values - end + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + private def finalize! = values # @param other [Object] # # @return [Boolean] - def self.===(other) = values.include?(other) + def ===(other) = values.include?(other) # @param other [Object] # # @return [Boolean] - def self.==(other) - other.is_a?(Class) && other <= Orb::Enum && other.values.to_set == values.to_set + def ==(other) + other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Enum) && other.values.to_set == values.to_set end - class << self - # @api private - # - # @param value [String, Symbol, Object] - # - # @return [Symbol, Object] - def coerce(value) - case value - in Symbol | String if values.include?(val = value.to_sym) - val - else - value - end + # @api private + # + # @param value [String, Symbol, Object] + # + # @return [Symbol, Object] + def coerce(value) + case value + in Symbol | String if values.include?(val = value.to_sym) + val + else + value end + end - # @!parse - # # @api private - # # - # # @param value [Symbol, Object] - # # - # # @return [Symbol, Object] - # def dump(value) = super + # @!parse + # # @api private + # # + # # @param value [Symbol, Object] + # # + # # @return [Symbol, Object] + # def dump(value) = super - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - return [true, value, 1] if values.include?(value) + # @api private + # + # @param value [Object] + # + # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] + def try_strict_coerce(value) + return [true, value, 1] if values.include?(value) - case value - in Symbol | String if values.include?(val = value.to_sym) - [true, val, 1] + case value + in Symbol | String if values.include?(val = value.to_sym) + [true, val, 1] + else + case [value, values.first] + in [true | false, true | false] | [Integer, Integer] | [Symbol | String, Symbol] + [false, true, 0] else - case [value, values.first] - in [true | false, true | false] | [Integer, Integer] | [Symbol | String, Symbol] - [false, true, 0] - else - [false, false, 0] - end + [false, false, 0] end end end @@ -388,134 +378,126 @@ def try_strict_coerce(value) # @api private # - # @abstract - # # @example - # ```ruby - # # `discount` is a `Orb::Models::Discount` - # case discount - # when Orb::Models::PercentageDiscount - # puts(discount.applies_to_price_ids) - # when Orb::Models::TrialDiscount - # puts(discount.discount_type) - # when Orb::Models::UsageDiscount - # puts(discount.usage_discount) - # else - # puts(discount) - # end - # ``` + # # `discount` is a `Orb::Models::Discount` + # case discount + # when Orb::Models::PercentageDiscount + # puts(discount.applies_to_price_ids) + # when Orb::Models::TrialDiscount + # puts(discount.discount_type) + # when Orb::Models::UsageDiscount + # puts(discount.usage_discount) + # else + # puts(discount) + # end # # @example - # ```ruby - # case discount - # in { - # discount_type: :percentage, - # applies_to_price_ids: applies_to_price_ids, - # percentage_discount: percentage_discount, - # reason: reason - # } - # puts(applies_to_price_ids) - # in { - # discount_type: :trial, - # applies_to_price_ids: applies_to_price_ids, - # reason: reason, - # trial_amount_discount: trial_amount_discount - # } - # puts(reason) - # in { - # discount_type: :usage, - # applies_to_price_ids: applies_to_price_ids, - # usage_discount: usage_discount, - # reason: reason - # } - # puts(usage_discount) - # else - # puts(discount) - # end - # ``` - class Union - extend Orb::Converter + # case discount + # in { + # discount_type: :percentage, + # applies_to_price_ids: applies_to_price_ids, + # percentage_discount: percentage_discount, + # reason: reason + # } + # puts(applies_to_price_ids) + # in { + # discount_type: :trial, + # applies_to_price_ids: applies_to_price_ids, + # reason: reason, + # trial_amount_discount: trial_amount_discount + # } + # puts(reason) + # in { + # discount_type: :usage, + # applies_to_price_ids: applies_to_price_ids, + # usage_discount: usage_discount, + # reason: reason + # } + # puts(usage_discount) + # else + # puts(discount) + # end + module Union + include Orb::Converter - class << self - # @api private - # - # All of the specified variant info for this union. - # - # @return [Array] - private def known_variants = (@known_variants ||= []) + # @api private + # + # All of the specified variant info for this union. + # + # @return [Array] + private def known_variants = (@known_variants ||= []) - # @api private - # - # @return [Array] - protected def derefed_variants - @known_variants.map { |key, variant_fn| [key, variant_fn.call] } - end + # @api private + # + # @return [Array] + protected def derefed_variants + @known_variants.map { |key, variant_fn| [key, variant_fn.call] } + end - # All of the specified variants for this union. - # - # @return [Array] - def variants - derefed_variants.map(&:last) + # All of the specified variants for this union. + # + # @return [Array] + def variants + derefed_variants.map(&:last) + end + + # @api private + # + # @param property [Symbol] + private def discriminator(property) + case property + in Symbol + @discriminator = property end + end - # @api private - # - # @param property [Symbol] - private def discriminator(property) - case property + # @api private + # + # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + private def variant(key, spec = nil) + variant_info = + case key in Symbol - @discriminator = property + [key, Orb::Converter.type_info(spec)] + in Proc | Orb::Converter | Module | Hash + [nil, Orb::Converter.type_info(key)] end - end - # @api private - # - # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - private def variant(key, spec = nil) - variant_info = - case key - in Symbol - [key, Orb::Converter.type_info(spec)] - in Proc | Orb::Converter | Class | Hash - [nil, Orb::Converter.type_info(key)] - end - - known_variants << variant_info - end + known_variants << variant_info + end - # @api private - # - # @param value [Object] - # - # @return [Orb::Converter, Class, nil] - private def resolve_variant(value) - case [@discriminator, value] - in [_, Orb::BaseModel] - value.class - in [Symbol, Hash] - key = - if value.key?(@discriminator) - value.fetch(@discriminator) - elsif value.key?((discriminator = @discriminator.to_s)) - value.fetch(discriminator) - end + # @api private + # + # @param value [Object] + # + # @return [Orb::Converter, Class, nil] + private def resolve_variant(value) + case [@discriminator, value] + in [_, Orb::BaseModel] + value.class + in [Symbol, Hash] + key = + if value.key?(@discriminator) + value.fetch(@discriminator) + elsif value.key?((discriminator = @discriminator.to_s)) + value.fetch(discriminator) + end - key = key.to_sym if key.is_a?(String) - _, resolved = known_variants.find { |k,| k == key } - resolved.nil? ? Orb::Unknown : resolved.call - else - nil - end + key = key.to_sym if key.is_a?(String) + _, resolved = known_variants.find { |k,| k == key } + resolved.nil? ? Orb::Unknown : resolved.call + else + nil end end @@ -525,7 +507,7 @@ def variants # @param other [Object] # # @return [Boolean] - def self.===(other) + def ===(other) known_variants.any? do |_, variant_fn| variant_fn.call === other end @@ -534,90 +516,88 @@ def self.===(other) # @param other [Object] # # @return [Boolean] - def self.==(other) - other.is_a?(Class) && other <= Orb::Union && other.derefed_variants == derefed_variants + def ==(other) + other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Union) && other.derefed_variants == derefed_variants end - class << self - # @api private - # - # @param value [Object] - # - # @return [Object] - def coerce(value) - if (variant = resolve_variant(value)) - return Orb::Converter.coerce(variant, value) - end + # @api private + # + # @param value [Object] + # + # @return [Object] + def coerce(value) + if (variant = resolve_variant(value)) + return Orb::Converter.coerce(variant, value) + end - matches = [] + matches = [] - known_variants.each do |_, variant_fn| - variant = variant_fn.call + known_variants.each do |_, variant_fn| + variant = variant_fn.call - case Orb::Converter.try_strict_coerce(variant, value) - in [true, coerced, _] - return coerced - in [false, true, score] - matches << [score, variant] - in [false, false, _] - nil - end + case Orb::Converter.try_strict_coerce(variant, value) + in [true, coerced, _] + return coerced + in [false, true, score] + matches << [score, variant] + in [false, false, _] + nil end + end + + _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } + variant.nil? ? value : Orb::Converter.coerce(variant, value) + end - _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } - variant.nil? ? value : Orb::Converter.coerce(variant, value) + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + if (variant = resolve_variant(value)) + return Orb::Converter.dump(variant, value) end - # @api private - # - # @param value [Object] - # - # @return [Object] - def dump(value) - if (variant = resolve_variant(value)) + known_variants.each do |_, variant_fn| + variant = variant_fn.call + if variant === value return Orb::Converter.dump(variant, value) end - - known_variants.each do |_, variant_fn| - variant = variant_fn.call - if variant === value - return Orb::Converter.dump(variant, value) - end - end - value end + value + end - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - # TODO(ruby) this will result in super linear decoding behaviour for nested unions - # follow up with a decoding context that captures current strictness levels - if (variant = resolve_variant(value)) - return Converter.try_strict_coerce(variant, value) - end + # @api private + # + # @param value [Object] + # + # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] + def try_strict_coerce(value) + # TODO(ruby) this will result in super linear decoding behaviour for nested unions + # follow up with a decoding context that captures current strictness levels + if (variant = resolve_variant(value)) + return Converter.try_strict_coerce(variant, value) + end - coercible = false - max_score = 0 + coercible = false + max_score = 0 - known_variants.each do |_, variant_fn| - variant = variant_fn.call + known_variants.each do |_, variant_fn| + variant = variant_fn.call - case Orb::Converter.try_strict_coerce(variant, value) - in [true, coerced, score] - return [true, coerced, score] - in [false, true, score] - coercible = true - max_score = [max_score, score].max - in [false, false, _] - nil - end + case Orb::Converter.try_strict_coerce(variant, value) + in [true, coerced, score] + return [true, coerced, score] + in [false, true, score] + coercible = true + max_score = [max_score, score].max + in [false, false, _] + nil end - - [false, coercible, max_score] end + + [false, coercible, max_score] end # rubocop:enable Style/CaseEquality @@ -901,14 +881,12 @@ def initialize(type_info, spec = {}) # @abstract # # @example - # ```ruby - # # `amount_discount` is a `Orb::Models::AmountDiscount` - # amount_discount => { - # amount_discount: amount_discount, - # applies_to_price_ids: applies_to_price_ids, - # discount_type: discount_type - # } - # ``` + # # `amount_discount` is a `Orb::Models::AmountDiscount` + # amount_discount => { + # amount_discount: amount_discount, + # applies_to_price_ids: applies_to_price_ids, + # discount_type: discount_type + # } class BaseModel extend Orb::Converter @@ -964,7 +942,7 @@ def defaults = (@defaults ||= {}) private def add_field(name_sym, required:, type_info:, spec:) type_fn, info = case type_info - in Proc | Class | Orb::Converter + in Proc | Module | Orb::Converter [Orb::Converter.type_info({**spec, union: type_info}), spec] in Hash [Orb::Converter.type_info(type_info), type_info] @@ -1236,7 +1214,7 @@ def initialize(data = {}) type = self.class.fields[mapped]&.fetch(:type) stored = case [type, value] - in [Class, Hash] if type <= Orb::BaseModel + in [Module, Hash] if type <= Orb::BaseModel type.new(value) in [Orb::ArrayOf, Array] | [Orb::HashOf, Hash] type.coerce(value) diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb index 79401ec5..4e665f97 100644 --- a/lib/orb/base_page.rb +++ b/lib/orb/base_page.rb @@ -2,32 +2,26 @@ module Orb # @example - # ```ruby - # if page.has_next? - # page = page.next_page - # end - # ``` + # if page.has_next? + # page = page.next_page + # end # # @example - # ```ruby - # page.auto_paging_each do |top_level| - # puts(top_level) - # end - # ``` + # page.auto_paging_each do |top_level| + # puts(top_level) + # end # # @example - # ```ruby - # top_levels = - # page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a + # top_levels = + # page + # .to_enum + # .lazy + # .select { _1.object_id.even? } + # .map(&:itself) + # .take(2) + # .to_a # - # top_levels => Array - # ``` + # top_levels => Array module BasePage # rubocop:disable Lint/UnusedMethodArgument diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 1d7b8de2..6c7af48c 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -197,10 +197,10 @@ class Threshold < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The type of alert. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered @@ -208,6 +208,12 @@ class Type < Orb::Enum COST_EXCEEDED = :cost_exceeded finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/alert_create_for_customer_params.rb b/lib/orb/models/alert_create_for_customer_params.rb index f2d5b41c..bb32b4bb 100644 --- a/lib/orb/models/alert_create_for_customer_params.rb +++ b/lib/orb/models/alert_create_for_customer_params.rb @@ -37,15 +37,21 @@ class AlertCreateForCustomerParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Threshold < Orb::BaseModel 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 c0177c24..92bd5a49 100644 --- a/lib/orb/models/alert_create_for_external_customer_params.rb +++ b/lib/orb/models/alert_create_for_external_customer_params.rb @@ -37,15 +37,21 @@ class AlertCreateForExternalCustomerParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Threshold < Orb::BaseModel diff --git a/lib/orb/models/alert_create_for_subscription_params.rb b/lib/orb/models/alert_create_for_subscription_params.rb index e69a7169..20e11c30 100644 --- a/lib/orb/models/alert_create_for_subscription_params.rb +++ b/lib/orb/models/alert_create_for_subscription_params.rb @@ -55,14 +55,20 @@ class Threshold < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + USAGE_EXCEEDED = :usage_exceeded COST_EXCEEDED = :cost_exceeded finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/amount_discount.rb b/lib/orb/models/amount_discount.rb index 8c8fe6d3..1044e276 100644 --- a/lib/orb/models/amount_discount.rb +++ b/lib/orb/models/amount_discount.rb @@ -36,11 +36,18 @@ class AmountDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/billable_metric.rb b/lib/orb/models/billable_metric.rb index fd8d9d86..e1c509c8 100644 --- a/lib/orb/models/billable_metric.rb +++ b/lib/orb/models/billable_metric.rb @@ -56,13 +56,20 @@ class BillableMetric < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active DRAFT = :draft ARCHIVED = :archived finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/billing_cycle_relative_date.rb b/lib/orb/models/billing_cycle_relative_date.rb index def48522..b743063a 100644 --- a/lib/orb/models/billing_cycle_relative_date.rb +++ b/lib/orb/models/billing_cycle_relative_date.rb @@ -2,12 +2,19 @@ module Orb module Models - # @abstract - class BillingCycleRelativeDate < Orb::Enum + module BillingCycleRelativeDate + extend Orb::Enum + START_OF_TERM = :start_of_term END_OF_TERM = :end_of_term finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index f7a2fe9a..5f23f55c 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -66,8 +66,9 @@ class Coupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/coupon_create_params.rb b/lib/orb/models/coupon_create_params.rb index 50129048..ebeb2f47 100644 --- a/lib/orb/models/coupon_create_params.rb +++ b/lib/orb/models/coupon_create_params.rb @@ -43,8 +43,9 @@ class CouponCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount } diff --git a/lib/orb/models/credit_note.rb b/lib/orb/models/credit_note.rb index 12408ad1..eca35c1a 100644 --- a/lib/orb/models/credit_note.rb +++ b/lib/orb/models/credit_note.rb @@ -321,12 +321,19 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -372,11 +379,18 @@ class MaximumAmountAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AppliesToPrice < Orb::BaseModel @@ -400,22 +414,36 @@ class AppliesToPrice < Orb::BaseModel end end - # @abstract - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE = :Duplicate FRAUDULENT = :Fraudulent ORDER_CHANGE = :"Order change" PRODUCT_UNSATISFACTORY = :"Product unsatisfactory" finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + REFUND = :refund ADJUSTMENT = :adjustment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Discount < Orb::BaseModel @@ -457,11 +485,18 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AppliesToPrice < Orb::BaseModel diff --git a/lib/orb/models/credit_note_create_params.rb b/lib/orb/models/credit_note_create_params.rb index 841d52e6..a08aa164 100644 --- a/lib/orb/models/credit_note_create_params.rb +++ b/lib/orb/models/credit_note_create_params.rb @@ -56,16 +56,22 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # An optional reason for the credit note. - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE = :duplicate FRAUDULENT = :fraudulent ORDER_CHANGE = :order_change PRODUCT_UNSATISFACTORY = :product_unsatisfactory finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 07d361ef..37cd9408 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -420,12 +420,12 @@ class Parent < Orb::BaseModel end end - # @abstract - # # 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. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -433,6 +433,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ShippingAddress < Orb::BaseModel @@ -610,8 +616,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -692,10 +699,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -769,6 +783,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -812,12 +832,19 @@ class AccountingProvider < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ProviderType < Orb::Enum + module ProviderType + extend Orb::Enum + QUICKBOOKS = :quickbooks NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index b6c66837..db62ceb4 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -396,12 +396,12 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # 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. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -409,6 +409,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -469,8 +475,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration } @@ -661,8 +668,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -743,10 +751,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -820,6 +835,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 83ee48de..56413c1f 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -395,8 +395,6 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: # @@ -404,7 +402,9 @@ class Hierarchy < Orb::BaseModel # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -412,6 +412,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -472,8 +478,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, @@ -666,8 +673,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -748,10 +756,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -825,6 +840,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index acd2b85c..17f1b612 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -387,8 +387,6 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: # @@ -396,7 +394,9 @@ class Hierarchy < Orb::BaseModel # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -404,6 +404,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -464,8 +470,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration } @@ -656,8 +663,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -738,10 +746,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -815,6 +830,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_create_params.rb b/lib/orb/models/customers/balance_transaction_create_params.rb index 1e0a2061..e01ac158 100644 --- a/lib/orb/models/customers/balance_transaction_create_params.rb +++ b/lib/orb/models/customers/balance_transaction_create_params.rb @@ -34,12 +34,19 @@ class BalanceTransactionCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_create_response.rb b/lib/orb/models/customers/balance_transaction_create_response.rb index 2bb773a0..1593e7a3 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -94,8 +94,9 @@ class BalanceTransactionCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -107,6 +108,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -139,12 +146,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index e0b50cb9..92303c16 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -94,8 +94,9 @@ class BalanceTransactionListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -107,6 +108,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -139,12 +146,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 9b7b54e0..d90ba826 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 @@ -46,17 +46,23 @@ class CostListByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/cost_list_params.rb b/lib/orb/models/customers/cost_list_params.rb index 28022675..d3554473 100644 --- a/lib/orb/models/customers/cost_list_params.rb +++ b/lib/orb/models/customers/cost_list_params.rb @@ -46,17 +46,23 @@ class CostListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credit_list_by_external_id_response.rb b/lib/orb/models/customers/credit_list_by_external_id_response.rb index 7ff8c472..6ed2d5ba 100644 --- a/lib/orb/models/customers/credit_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credit_list_by_external_id_response.rb @@ -52,12 +52,19 @@ class CreditListByExternalIDResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active PENDING_PAYMENT = :pending_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credit_list_response.rb b/lib/orb/models/customers/credit_list_response.rb index 907bad6d..411e8ca0 100644 --- a/lib/orb/models/customers/credit_list_response.rb +++ b/lib/orb/models/customers/credit_list_response.rb @@ -52,12 +52,19 @@ class CreditListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active PENDING_PAYMENT = :pending_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 a8fdde83..a98e4ded 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 @@ -134,11 +134,18 @@ class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class InvoiceSettings < Orb::BaseModel @@ -190,13 +197,19 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND = :refund finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 eef004cc..c17fe37f 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 @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryByExternalIDResponse < Orb::Union + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -187,12 +187,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -372,12 +379,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -543,12 +557,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -707,12 +728,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -885,12 +913,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1070,12 +1105,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1234,12 +1276,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end 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 6e5569a2..857ba309 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -133,11 +133,18 @@ class LedgerCreateEntryParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class InvoiceSettings < Orb::BaseModel @@ -189,13 +196,19 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND = :refund finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 45cf1155..4d23a1b2 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryResponse < Orb::Union + module LedgerCreateEntryResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -186,12 +186,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -371,12 +378,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -542,12 +556,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -706,12 +727,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -884,12 +912,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1069,12 +1104,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1233,12 +1275,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end 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 0a11de2d..2140cd90 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 @@ -103,16 +103,24 @@ class LedgerListByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement EXPIRATION_CHANGE = :expiration_change @@ -122,6 +130,12 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 3cfbbe3e..babbaa28 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 @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListByExternalIDResponse < Orb::Union + module LedgerListByExternalIDResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -186,12 +186,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -371,12 +378,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -542,12 +556,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -706,12 +727,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -884,12 +912,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1069,12 +1104,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1233,12 +1275,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end diff --git a/lib/orb/models/customers/credits/ledger_list_params.rb b/lib/orb/models/customers/credits/ledger_list_params.rb index 8ecdf7ab..08630170 100644 --- a/lib/orb/models/customers/credits/ledger_list_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_params.rb @@ -103,16 +103,24 @@ class LedgerListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement EXPIRATION_CHANGE = :expiration_change @@ -122,6 +130,12 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_response.rb b/lib/orb/models/customers/credits/ledger_list_response.rb index 0b6bd6bc..9d392fa2 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListResponse < Orb::Union + module LedgerListResponse + extend Orb::Union + discriminator :entry_type variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry } @@ -183,12 +183,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -368,12 +375,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -539,12 +553,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -703,12 +724,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -880,12 +908,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1065,12 +1100,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1229,12 +1271,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end 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 e5357492..47493403 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 @@ -138,14 +138,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 7e1f4b22..59184853 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 @@ -130,14 +130,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 992f1cdb..8905f7f6 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -137,14 +137,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 7f37f6c7..fe393956 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -129,14 +129,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 8cad200e..f074a037 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 @@ -130,14 +130,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 1935b45c..79d44aaf 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -129,14 +129,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index bc978e4f..978e192f 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 766f46f7..93a0119b 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -30,8 +30,9 @@ class EvaluatePriceGroup < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class GroupingValue < Orb::Union + module GroupingValue + extend Orb::Union + variant String variant Float diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index 3b7b5ad0..bf8fccd4 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -107,16 +107,22 @@ class BackfillCloseResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 0f78ae9e..029b8bf1 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -107,16 +107,22 @@ class BackfillCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index 75bd4d10..021d7c5e 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -107,16 +107,22 @@ class BackfillFetchResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index d34821a5..93d64ec7 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -107,16 +107,22 @@ class BackfillListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index 93fc26a7..1325f08e 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -107,16 +107,22 @@ class BackfillRevertResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 24073823..da0add59 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -710,8 +710,9 @@ class CustomerBalanceTransaction < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -723,6 +724,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -755,12 +762,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -895,8 +909,9 @@ class CustomerTaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -977,10 +992,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -1054,16 +1076,29 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION = :subscription PARTIAL = :partial ONE_OFF = :one_off finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class LineItem < Orb::BaseModel @@ -1269,8 +1304,9 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -1693,8 +1729,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, -> { Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem } @@ -2075,13 +2112,19 @@ class PaymentAttempt < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE = :stripe finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2129,8 +2172,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED = :issued PAID = :paid SYNCED = :synced @@ -2138,6 +2182,12 @@ class Status < Orb::Enum DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index 7ab73a98..c605d414 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -165,11 +165,18 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + UNIT = :unit finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 49413359..075f377d 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -709,8 +709,9 @@ class CustomerBalanceTransaction < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -722,6 +723,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -754,12 +761,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -894,8 +908,9 @@ class CustomerTaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -976,10 +991,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -1053,16 +1075,29 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION = :subscription PARTIAL = :partial ONE_OFF = :one_off finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class LineItem < Orb::BaseModel @@ -1270,8 +1305,9 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -1696,8 +1732,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, @@ -2083,13 +2120,19 @@ class PaymentAttempt < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE = :stripe finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2137,8 +2180,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED = :issued PAID = :paid SYNCED = :synced @@ -2146,6 +2190,12 @@ class Status < Orb::Enum DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index 5c5da398..0a110f31 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class InvoiceLevelDiscount < Orb::Union + module InvoiceLevelDiscount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 184e545a..f8f52800 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -206,8 +206,9 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -630,8 +631,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, -> { Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem } diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index 1f3fc1b4..ad0fe49f 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -163,16 +163,24 @@ class InvoiceListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DateType < Orb::Enum + module DateType + extend Orb::Enum + DUE_DATE = :due_date INVOICE_DATE = :invoice_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + DRAFT = :draft ISSUED = :issued PAID = :paid @@ -180,6 +188,12 @@ class Status < Orb::Enum VOID = :void finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 719a8bb7..1d0caf1d 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -57,8 +57,9 @@ class ExternalConnection < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE = :stripe QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" @@ -68,6 +69,12 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index a6424e56..46a0c597 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -48,8 +48,9 @@ class ExternalConnection < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE = :stripe QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" @@ -59,6 +60,12 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/percentage_discount.rb b/lib/orb/models/percentage_discount.rb index dcd1f139..317e65a0 100644 --- a/lib/orb/models/percentage_discount.rb +++ b/lib/orb/models/percentage_discount.rb @@ -37,11 +37,18 @@ class PercentageDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 7de61165..d807cad7 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -210,8 +210,9 @@ class Plan < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, -> { Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment } @@ -745,8 +746,9 @@ class PlanPhase < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAILY = :daily MONTHLY = :monthly QUARTERLY = :quarterly @@ -754,6 +756,12 @@ class DurationUnit < Orb::Enum ANNUAL = :annual finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Maximum < Orb::BaseModel @@ -829,13 +837,20 @@ class Product < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ARCHIVED = :archived DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialConfig < Orb::BaseModel @@ -857,11 +872,18 @@ class TrialConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class TrialPeriodUnit < Orb::Enum + module TrialPeriodUnit + extend Orb::Enum + DAYS = :days finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index ba593e84..bd5e95bb 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -92,8 +92,9 @@ class PlanCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice } @@ -297,10 +298,10 @@ class NewPlanUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -309,6 +310,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -351,14 +358,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -387,14 +400,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -540,10 +559,10 @@ class NewPlanPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -552,6 +571,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -602,14 +627,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -638,14 +669,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -791,10 +828,10 @@ class NewPlanMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -803,6 +840,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -884,14 +927,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -920,14 +969,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1073,10 +1128,10 @@ class NewPlanTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1085,6 +1140,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1157,14 +1218,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1193,14 +1260,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1347,10 +1420,10 @@ class NewPlanTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1359,6 +1432,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -1439,14 +1518,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1475,14 +1560,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1650,10 +1741,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1662,6 +1753,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -1689,14 +1786,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1725,14 +1828,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1924,10 +2033,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1936,6 +2045,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -1963,14 +2078,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1999,14 +2120,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2190,10 +2317,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2202,6 +2329,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2229,14 +2362,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2265,14 +2404,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2419,10 +2564,10 @@ class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2431,6 +2576,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2458,14 +2609,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2494,14 +2651,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2647,10 +2810,10 @@ class NewPlanTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2659,6 +2822,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2686,14 +2855,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2722,14 +2897,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2876,10 +3057,10 @@ class NewPlanTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2888,6 +3069,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2915,14 +3102,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2951,14 +3144,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3104,10 +3303,10 @@ class NewPlanUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3116,6 +3315,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3143,14 +3348,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3179,14 +3390,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3333,10 +3550,10 @@ class NewPlanPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3345,6 +3562,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3372,14 +3595,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3408,14 +3637,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3562,10 +3797,10 @@ class NewPlanTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3574,6 +3809,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3601,14 +3842,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3637,14 +3884,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3791,10 +4044,10 @@ class NewPlanUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3803,6 +4056,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3830,14 +4089,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3866,14 +4131,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4020,10 +4291,10 @@ class NewPlanGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4032,6 +4303,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4059,14 +4336,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4095,14 +4378,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4249,10 +4538,10 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4261,6 +4550,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4288,14 +4583,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4324,14 +4625,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4478,10 +4785,10 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4490,6 +4797,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4517,14 +4830,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4553,14 +4872,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4707,10 +5032,10 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4719,6 +5044,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4746,14 +5077,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4782,14 +5119,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4936,10 +5279,10 @@ class NewPlanBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4948,6 +5291,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4975,14 +5324,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5011,14 +5366,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5165,10 +5526,10 @@ class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5177,6 +5538,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5204,14 +5571,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5240,14 +5613,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5394,10 +5773,10 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5406,6 +5785,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5433,14 +5818,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5469,14 +5860,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5623,10 +6020,10 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5635,6 +6032,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5662,14 +6065,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5698,14 +6107,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5852,10 +6267,10 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5864,6 +6279,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5891,14 +6312,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5927,14 +6354,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6081,10 +6514,10 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6093,6 +6526,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6120,14 +6559,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6156,14 +6601,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6175,15 +6626,21 @@ class DurationUnit < Orb::Enum # end end - # @abstract - # # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan_list_params.rb b/lib/orb/models/plan_list_params.rb index f6894ef9..ce3c183e 100644 --- a/lib/orb/models/plan_list_params.rb +++ b/lib/orb/models/plan_list_params.rb @@ -80,15 +80,21 @@ class PlanListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The plan status to filter to ('active', 'archived', or 'draft'). - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ARCHIVED = :archived DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 2c4b57f6..88b126d2 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -2,8 +2,6 @@ module Orb module Models - # @abstract - # # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices # take a quantity and determine an amount to bill. @@ -14,7 +12,9 @@ module Models # # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::Price::UnitPrice } @@ -295,17 +295,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -314,6 +322,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -356,12 +370,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -431,12 +452,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -696,17 +724,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -715,6 +751,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -757,12 +799,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -855,12 +904,19 @@ class PackageConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1105,17 +1161,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1124,6 +1188,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -1166,12 +1236,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1294,12 +1371,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1544,17 +1628,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1563,6 +1655,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -1605,12 +1703,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1680,12 +1785,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1975,17 +2087,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1994,6 +2114,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2036,12 +2162,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2111,12 +2244,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2413,12 +2553,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2444,8 +2591,9 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -2454,6 +2602,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2496,12 +2650,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2571,12 +2732,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -2821,12 +2989,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2875,8 +3050,9 @@ class Tier < Orb::BaseModel end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -2885,6 +3061,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2927,12 +3109,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3002,12 +3191,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3252,12 +3448,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3298,8 +3501,9 @@ class Tier < Orb::BaseModel end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -3308,6 +3512,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -3350,12 +3560,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3425,12 +3642,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3680,17 +3904,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -3699,6 +3931,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -3741,12 +3979,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3816,12 +4061,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4067,17 +4319,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4086,6 +4346,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4128,12 +4394,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4203,12 +4476,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4454,17 +4734,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4473,6 +4761,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4515,12 +4809,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4590,12 +4891,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4843,17 +5151,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4862,6 +5178,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4904,12 +5226,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4979,12 +5308,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5234,17 +5570,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -5253,6 +5597,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -5295,12 +5645,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5370,12 +5727,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5625,17 +5989,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -5644,6 +6016,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -5686,12 +6064,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5761,12 +6146,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6012,17 +6404,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6031,6 +6431,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6073,12 +6479,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6148,12 +6561,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6404,17 +6824,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6423,6 +6851,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6465,12 +6899,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6601,12 +7042,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6854,17 +7302,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6873,6 +7329,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6915,12 +7377,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6990,12 +7459,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7243,17 +7719,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7262,6 +7746,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -7304,12 +7794,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7379,12 +7876,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7632,17 +8136,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7651,6 +8163,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -7693,12 +8211,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7768,12 +8293,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8023,17 +8555,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8042,6 +8582,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8084,12 +8630,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8159,12 +8712,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8414,17 +8974,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8433,6 +9001,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8475,12 +9049,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8550,12 +9131,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8805,17 +9393,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8824,6 +9420,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8866,12 +9468,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8941,12 +9550,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9194,17 +9810,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9213,6 +9837,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -9255,12 +9885,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9330,12 +9967,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9585,17 +10229,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9604,6 +10256,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -9646,12 +10304,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9721,12 +10386,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9976,17 +10648,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9995,6 +10675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10037,12 +10723,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10112,12 +10805,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10367,17 +11067,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -10386,6 +11094,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10428,12 +11142,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10503,12 +11224,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10758,17 +11486,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -10777,6 +11513,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10819,12 +11561,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10894,12 +11643,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11149,17 +11905,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -11168,6 +11932,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -11210,12 +11980,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11285,12 +12062,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index b9cf79a0..0cf5bf2a 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -337,10 +337,10 @@ class PriceCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -349,13 +349,26 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -398,14 +411,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -434,14 +453,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 0e8f268d..392c4d11 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -305,8 +305,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -715,8 +716,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval } @@ -1197,13 +1199,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_cancel_params.rb b/lib/orb/models/subscription_cancel_params.rb index 0634c86e..35a6c7a3 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -38,15 +38,21 @@ class SubscriptionCancelParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Determines the timing of subscription cancellation - class CancelOption < Orb::Enum + module CancelOption + extend Orb::Enum + END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term IMMEDIATE = :immediate REQUESTED_DATE = :requested_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 9276795d..41ebb884 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -288,8 +288,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -698,8 +699,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval } @@ -1181,13 +1183,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 61f0b062..e4ecc929 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -343,10 +343,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -721,10 +721,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -733,6 +733,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -773,20 +779,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice } @@ -1011,10 +1024,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1023,6 +1036,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -1065,14 +1084,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1101,14 +1126,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1265,10 +1296,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1277,6 +1308,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -1327,14 +1364,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1363,14 +1406,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1527,10 +1576,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1539,6 +1588,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1624,14 +1679,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1660,14 +1721,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1824,10 +1891,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1836,6 +1903,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1908,14 +1981,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1944,14 +2023,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2108,10 +2193,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2120,6 +2205,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2204,14 +2295,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2240,14 +2337,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2426,10 +2529,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2438,6 +2541,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2465,14 +2574,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2501,14 +2616,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2711,10 +2832,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2723,6 +2844,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2750,14 +2877,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2786,14 +2919,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2988,10 +3127,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3000,6 +3139,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3027,14 +3172,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3063,14 +3214,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3226,10 +3383,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3238,6 +3395,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3265,14 +3428,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3301,14 +3470,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3464,10 +3639,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3476,6 +3651,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3503,14 +3684,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3539,14 +3726,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3702,10 +3895,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3714,6 +3907,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3741,14 +3940,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3777,14 +3982,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3940,10 +4151,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3952,6 +4163,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3979,14 +4196,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4015,14 +4238,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4178,10 +4407,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4190,6 +4419,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4217,14 +4452,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4253,14 +4494,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4416,10 +4663,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4428,6 +4675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4455,14 +4708,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4491,14 +4750,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4654,10 +4919,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4666,6 +4931,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4693,14 +4964,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4729,14 +5006,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4892,10 +5175,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4904,6 +5187,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4931,14 +5220,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4967,14 +5262,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5130,10 +5431,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5142,6 +5443,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5169,14 +5476,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5205,14 +5518,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5368,10 +5687,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5380,6 +5699,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5407,14 +5732,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5443,14 +5774,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5606,10 +5943,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5618,6 +5955,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5645,14 +5988,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5681,14 +6030,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5844,10 +6199,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5856,6 +6211,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5883,14 +6244,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5919,14 +6286,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6082,10 +6455,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6094,6 +6467,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6121,14 +6500,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6157,14 +6542,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6320,10 +6711,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6332,6 +6723,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6359,14 +6756,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6395,14 +6798,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6558,10 +6967,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6570,6 +6979,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6597,14 +7012,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6633,14 +7054,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6796,10 +7223,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6808,6 +7235,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6835,14 +7268,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6871,14 +7310,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7034,10 +7479,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7046,6 +7491,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7073,14 +7524,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7109,14 +7566,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7164,15 +7627,21 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # @deprecated - class ExternalMarketplace < Orb::Enum + module ExternalMarketplace + extend Orb::Enum + GOOGLE = :google AWS = :aws AZURE = :azure finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class RemoveAdjustment < Orb::BaseModel @@ -7233,10 +7702,10 @@ class ReplaceAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7600,10 +8069,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7612,6 +8081,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7652,20 +8127,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice } @@ -7892,10 +8374,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7904,6 +8386,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -7946,14 +8434,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7982,14 +8476,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8146,10 +8646,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8158,6 +8658,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -8208,14 +8714,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8244,14 +8756,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8408,10 +8926,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8420,6 +8938,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -8505,14 +9029,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8541,14 +9071,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8705,10 +9241,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8717,6 +9253,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -8789,14 +9331,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8825,14 +9373,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8989,10 +9543,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9001,6 +9555,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -9085,14 +9645,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9121,14 +9687,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9307,10 +9879,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9319,6 +9891,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9346,14 +9924,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9382,14 +9966,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9596,10 +10186,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9608,6 +10198,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9635,14 +10231,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9671,14 +10273,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9873,10 +10481,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9885,6 +10493,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9912,14 +10526,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9948,14 +10568,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10111,10 +10737,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10123,6 +10749,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10150,14 +10782,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10186,14 +10824,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10349,10 +10993,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10361,6 +11005,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10388,14 +11038,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10424,14 +11080,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10587,10 +11249,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10599,6 +11261,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10626,14 +11294,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10662,14 +11336,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10825,10 +11505,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10837,6 +11517,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10864,14 +11550,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10900,14 +11592,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11063,10 +11761,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11075,6 +11773,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11102,14 +11806,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11138,14 +11848,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11301,10 +12017,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11313,6 +12029,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11340,14 +12062,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11376,14 +12104,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11539,10 +12273,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11551,6 +12285,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11578,14 +12318,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11614,14 +12360,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11777,10 +12529,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11789,6 +12541,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11816,14 +12574,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11852,14 +12616,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12015,10 +12785,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12027,6 +12797,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12054,14 +12830,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12090,14 +12872,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12253,10 +13041,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12265,6 +13053,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12292,14 +13086,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12328,14 +13128,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12491,10 +13297,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12503,6 +13309,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12530,14 +13342,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12566,14 +13384,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12729,10 +13553,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12741,6 +13565,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12768,14 +13598,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12804,14 +13640,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12967,10 +13809,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12979,6 +13821,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13006,14 +13854,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13042,14 +13896,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13205,10 +14065,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13217,6 +14077,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13244,14 +14110,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13280,14 +14152,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13443,10 +14321,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13455,6 +14333,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13482,14 +14366,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13518,14 +14408,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13681,10 +14577,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13693,6 +14589,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13720,14 +14622,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13756,14 +14664,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13919,10 +14833,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13931,6 +14845,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13958,14 +14878,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13994,14 +14920,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 2d1d2513..435f464c 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -288,8 +288,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -698,8 +699,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval } @@ -1181,13 +1183,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_fetch_costs_params.rb b/lib/orb/models/subscription_fetch_costs_params.rb index 0dfbddd6..23868e0a 100644 --- a/lib/orb/models/subscription_fetch_costs_params.rb +++ b/lib/orb/models/subscription_fetch_costs_params.rb @@ -45,17 +45,23 @@ class SubscriptionFetchCostsParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_fetch_usage_params.rb b/lib/orb/models/subscription_fetch_usage_params.rb index e09aebd5..2e5dbf4d 100644 --- a/lib/orb/models/subscription_fetch_usage_params.rb +++ b/lib/orb/models/subscription_fetch_usage_params.rb @@ -100,26 +100,38 @@ class SubscriptionFetchUsageParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # This determines the windowing of usage reporting. - class Granularity < Orb::Enum + module Granularity + extend Orb::Enum + DAY = :day finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - # # Controls whether Orb returns cumulative usage since the start of the billing # 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. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_list_params.rb b/lib/orb/models/subscription_list_params.rb index e9ed3c30..70bdfb52 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -89,13 +89,20 @@ class SubscriptionListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index af2442e3..b1868896 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -204,11 +204,11 @@ class Add < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The start date of the price interval. This is the date that the price will start # billing on the subscription. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -260,10 +260,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -272,11 +272,18 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :amount, @@ -360,11 +367,11 @@ class UsageDiscountCreationParams < Orb::BaseModel # end end - # @abstract - # # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -398,10 +405,10 @@ class FixedFeeQuantityTransition < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice } @@ -625,10 +632,10 @@ class NewFloatingUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -637,6 +644,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -679,14 +692,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -715,14 +734,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -869,10 +894,10 @@ class NewFloatingPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -881,6 +906,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -931,14 +962,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -967,14 +1004,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1121,10 +1164,10 @@ class NewFloatingMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1133,6 +1176,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1218,14 +1267,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1254,14 +1309,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1408,10 +1469,10 @@ class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1420,6 +1481,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixWithAllocationConfig < Orb::BaseModel @@ -1512,14 +1579,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1548,14 +1621,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1702,10 +1781,10 @@ class NewFloatingTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1714,6 +1793,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1786,14 +1871,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1822,14 +1913,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1976,10 +2073,10 @@ class NewFloatingTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1988,6 +2085,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2072,14 +2175,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2108,14 +2217,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2284,10 +2399,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2296,6 +2411,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2323,14 +2444,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2359,14 +2486,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2559,10 +2692,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2571,6 +2704,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2598,14 +2737,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2634,14 +2779,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2826,10 +2977,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2838,6 +2989,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2865,14 +3022,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2901,14 +3064,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3054,10 +3223,10 @@ class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3066,6 +3235,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3093,14 +3268,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3129,14 +3310,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3282,10 +3469,10 @@ class NewFloatingTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3294,6 +3481,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3321,14 +3514,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3357,14 +3556,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3510,10 +3715,10 @@ class NewFloatingGroupedTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3522,6 +3727,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3549,14 +3760,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3585,14 +3802,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3738,10 +3961,10 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3750,6 +3973,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3777,14 +4006,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3813,14 +4048,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3966,10 +4207,10 @@ class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3978,6 +4219,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4005,14 +4252,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4041,14 +4294,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4194,10 +4453,10 @@ class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4206,6 +4465,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4233,14 +4498,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4269,14 +4540,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4422,10 +4699,10 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4434,6 +4711,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4461,14 +4744,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4497,14 +4786,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4650,10 +4945,10 @@ class NewFloatingUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4662,6 +4957,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4689,14 +4990,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4725,14 +5032,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4878,10 +5191,10 @@ class NewFloatingTieredWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4890,6 +5203,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4917,14 +5236,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4953,14 +5278,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5106,10 +5437,10 @@ class NewFloatingUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5118,6 +5449,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5145,14 +5482,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5181,14 +5524,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5334,10 +5683,10 @@ class NewFloatingGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5346,6 +5695,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5373,14 +5728,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5409,14 +5770,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5562,10 +5929,10 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5574,6 +5941,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5601,14 +5974,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5637,14 +6016,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5790,10 +6175,10 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5802,6 +6187,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5829,14 +6220,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5865,14 +6262,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6018,10 +6421,10 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6030,6 +6433,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6057,14 +6466,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6093,14 +6508,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6246,10 +6667,10 @@ class NewFloatingBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6258,6 +6679,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6285,14 +6712,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6321,14 +6754,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6474,10 +6913,10 @@ class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6486,6 +6925,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6513,14 +6958,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6549,14 +7000,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6702,10 +7159,10 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6714,6 +7171,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6741,14 +7204,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6777,14 +7246,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6930,10 +7405,10 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6942,6 +7417,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6969,14 +7450,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7005,14 +7492,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7158,10 +7651,10 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7170,6 +7663,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7197,14 +7696,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7233,14 +7738,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7291,10 +7802,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7529,13 +8040,13 @@ class NewMaximum < Orb::BaseModel # end end - # @abstract - # # The start date of the adjustment interval. This is the date that the adjustment # 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. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7547,13 +8058,13 @@ class StartDate < Orb::Union # end end - # @abstract - # # 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. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7653,11 +8164,11 @@ class Edit < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The updated end date of this price interval. If not specified, the start date # will not be updated. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7691,11 +8202,11 @@ class FixedFeeQuantityTransition < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The updated start date of this price interval. If not specified, the start date # will not be updated. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7745,11 +8256,11 @@ class EditAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7761,11 +8272,11 @@ class EndDate < Orb::Union # end end - # @abstract - # # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index c670e24e..2c753529 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index 17d8ebce..67a4268c 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -273,13 +273,20 @@ class SubscriptionSchedulePlanChangeParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + REQUESTED_DATE = :requested_date END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term IMMEDIATE = :immediate finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AddAdjustment < Orb::BaseModel @@ -321,10 +328,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -704,10 +711,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -716,6 +723,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -756,20 +769,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, @@ -999,10 +1019,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1011,6 +1031,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -1053,14 +1079,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1089,14 +1121,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1253,10 +1291,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1265,6 +1303,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -1315,14 +1359,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1351,14 +1401,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1515,10 +1571,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1527,6 +1583,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1612,14 +1674,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1648,14 +1716,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1812,10 +1886,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1824,6 +1898,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1900,14 +1980,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1936,14 +2022,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2100,10 +2192,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2112,6 +2204,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2196,14 +2294,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2232,14 +2336,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2418,10 +2528,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2430,6 +2540,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2457,14 +2573,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2493,14 +2615,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2707,10 +2835,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2719,6 +2847,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2746,14 +2880,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2782,14 +2922,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2988,10 +3134,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3000,6 +3146,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3027,14 +3179,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3063,14 +3221,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3226,10 +3390,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3238,6 +3402,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3265,14 +3435,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3301,14 +3477,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3464,10 +3646,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3476,6 +3658,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3503,14 +3691,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3539,14 +3733,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3702,10 +3902,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3714,6 +3914,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3741,14 +3947,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3777,14 +3989,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3940,10 +4158,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3952,6 +4170,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3979,14 +4203,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4015,14 +4245,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4178,10 +4414,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4190,6 +4426,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4217,14 +4459,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4253,14 +4501,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4416,10 +4670,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4428,6 +4682,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4455,14 +4715,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4491,14 +4757,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4654,10 +4926,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4666,6 +4938,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4693,14 +4971,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4729,14 +5013,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4892,10 +5182,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4904,6 +5194,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4931,14 +5227,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4967,14 +5269,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5130,10 +5438,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5142,6 +5450,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5169,14 +5483,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5205,14 +5525,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5368,10 +5694,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5380,6 +5706,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5407,14 +5739,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5443,14 +5781,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5606,10 +5950,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5618,6 +5962,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5645,14 +5995,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5681,14 +6037,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5844,10 +6206,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5856,6 +6218,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5883,14 +6251,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5919,14 +6293,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6082,10 +6462,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6094,6 +6474,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6121,14 +6507,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6157,14 +6549,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6320,10 +6718,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6332,6 +6730,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6359,14 +6763,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6395,14 +6805,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6558,10 +6974,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6570,6 +6986,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6597,14 +7019,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6633,14 +7061,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6796,10 +7230,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6808,6 +7242,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6835,14 +7275,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6871,14 +7317,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7034,10 +7486,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7046,6 +7498,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7073,14 +7531,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7109,14 +7573,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7129,17 +7599,23 @@ class DurationUnit < Orb::Enum end end - # @abstract - # # 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. - class BillingCycleAlignment < Orb::Enum + module BillingCycleAlignment + extend Orb::Enum + UNCHANGED = :unchanged PLAN_CHANGE_DATE = :plan_change_date START_OF_MONTH = :start_of_month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -7236,10 +7712,10 @@ class ReplaceAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7607,10 +8083,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7619,6 +8095,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7659,20 +8141,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, @@ -7902,10 +8391,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7914,6 +8403,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -7956,14 +8451,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7992,14 +8493,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8156,10 +8663,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8168,6 +8675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -8218,14 +8731,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8254,14 +8773,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8418,10 +8943,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8430,6 +8955,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -8515,14 +9046,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8551,14 +9088,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8715,10 +9258,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8727,6 +9270,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -8803,14 +9352,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8839,14 +9394,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9003,10 +9564,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9015,6 +9576,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -9099,14 +9666,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9135,14 +9708,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9321,10 +9900,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9333,6 +9912,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9360,14 +9945,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9396,14 +9987,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9610,10 +10207,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9622,6 +10219,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9649,14 +10252,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9685,14 +10294,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9891,10 +10506,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9903,6 +10518,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9930,14 +10551,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9966,14 +10593,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10129,10 +10762,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10141,6 +10774,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10168,14 +10807,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10204,14 +10849,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10367,10 +11018,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10379,6 +11030,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10406,14 +11063,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10442,14 +11105,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10605,10 +11274,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10617,6 +11286,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10644,14 +11319,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10680,14 +11361,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10843,10 +11530,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10855,6 +11542,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10882,14 +11575,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10918,14 +11617,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11081,10 +11786,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11093,6 +11798,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11120,14 +11831,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11156,14 +11873,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11319,10 +12042,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11331,6 +12054,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11358,14 +12087,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11394,14 +12129,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11557,10 +12298,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11569,6 +12310,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11596,14 +12343,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11632,14 +12385,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11795,10 +12554,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11807,6 +12566,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11834,14 +12599,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11870,14 +12641,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12033,10 +12810,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12045,6 +12822,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12072,14 +12855,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12108,14 +12897,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12271,10 +13066,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12283,6 +13078,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12310,14 +13111,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12346,14 +13153,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12509,10 +13322,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12521,6 +13334,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12548,14 +13367,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12584,14 +13409,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12747,10 +13578,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12759,6 +13590,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12786,14 +13623,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12822,14 +13665,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12985,10 +13834,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12997,6 +13846,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13024,14 +13879,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13060,14 +13921,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13223,10 +14090,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13235,6 +14102,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13262,14 +14135,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13298,14 +14177,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13461,10 +14346,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13473,6 +14358,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13500,14 +14391,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13536,14 +14433,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13699,10 +14602,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13711,6 +14614,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13738,14 +14647,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13774,14 +14689,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13937,10 +14858,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13949,6 +14870,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13976,14 +14903,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -14012,14 +14945,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end 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 accc0045..4349f917 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 8b0138a8..69d72bc9 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index a0e7bb94..64ea86a0 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 2a6dd49c..2d331a55 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 @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1192,13 +1194,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 b21e230a..d6494fe3 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 9a1e6c9e..d809ee43 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -68,17 +68,23 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # 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`. - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + IMMEDIATE = :immediate UPCOMING_INVOICE = :upcoming_invoice EFFECTIVE_DATE = :effective_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 203550eb..16034ff7 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index 2abbe3f1..098dc5b3 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -11,7 +11,7 @@ class SubscriptionUpdateTrialParams < Orb::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::UnionMember1] + # @return [Time, Symbol] required :trial_end_date, union: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate } # @!attribute [r] shift @@ -26,7 +26,7 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel # attr_writer :shift # @!parse - # # @param trial_end_date [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1] + # # @param trial_end_date [Time, Symbol] # # @param shift [Boolean] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] # # @@ -34,25 +34,24 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - class TrialEndDate < Orb::Union - variant Time + module TrialEndDate + extend Orb::Union + + # @!group - variant enum: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1 } + IMMEDIATE = :immediate - # @abstract - class UnionMember1 < Orb::Enum - IMMEDIATE = :immediate + # @!endgroup + + variant Time - finalize! - end + variant const: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE # @!parse # class << self - # # @return [Array(Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1)] + # # @return [Array(Time, Symbol)] # def variants; end # end end diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 26f17746..325243b3 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -291,8 +291,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -701,8 +702,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1186,13 +1188,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index 72d6b419..651d552c 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class SubscriptionUsage < Orb::Union + module SubscriptionUsage + extend Orb::Union + variant -> { Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage } variant -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage } @@ -95,12 +96,19 @@ class Usage < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -223,12 +231,19 @@ class Usage < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/trial_discount.rb b/lib/orb/models/trial_discount.rb index 03b3799f..41644b8a 100644 --- a/lib/orb/models/trial_discount.rb +++ b/lib/orb/models/trial_discount.rb @@ -52,11 +52,18 @@ class TrialDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + TRIAL = :trial finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/usage_discount.rb b/lib/orb/models/usage_discount.rb index 34024657..bdbfd444 100644 --- a/lib/orb/models/usage_discount.rb +++ b/lib/orb/models/usage_discount.rb @@ -37,11 +37,18 @@ class UsageDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + USAGE = :usage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/page.rb b/lib/orb/page.rb index 0b496deb..135e3a44 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -2,32 +2,26 @@ module Orb # @example - # ```ruby - # if page.has_next? - # page = page.next_page - # end - # ``` + # if page.has_next? + # page = page.next_page + # end # # @example - # ```ruby - # page.auto_paging_each do |coupon| - # puts(coupon) - # end - # ``` + # page.auto_paging_each do |coupon| + # puts(coupon) + # end # # @example - # ```ruby - # coupons = - # page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a + # coupons = + # page + # .to_enum + # .lazy + # .select { _1.object_id.even? } + # .map(&:itself) + # .take(2) + # .to_a # - # coupons => Array - # ``` + # coupons => Array class Page include Orb::BasePage diff --git a/lib/orb/request_options.rb b/lib/orb/request_options.rb index a75b14e8..9025852c 100644 --- a/lib/orb/request_options.rb +++ b/lib/orb/request_options.rb @@ -83,7 +83,7 @@ def self.validate!(opts) # Extra data to send with the request. These are deep merged into any data # generated as part of the normal request. # - # @return [Hash{Symbol=>Object}, nil] + # @return [Object, nil] optional :extra_body, Orb::HashOf[Orb::Unknown] # @!attribute max_retries diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index 44504039..72fc32f8 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -1439,7 +1439,7 @@ def update_fixed_fee_quantity(subscription_id, params) # # @param params [Orb::Models::SubscriptionUpdateTrialParams, Hash{Symbol=>Object}] . # - # @option params [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1] :trial_end_date The new date that the trial should end, or the literal string `immediate` to end + # @option params [Time, Symbol] :trial_end_date The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. # # @option params [Boolean] :shift If true, shifts subsequent price and adjustment intervals (preserving their diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 35b9c2b4..d11974dd 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -26,7 +26,7 @@ module Orb page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), stream: T.nilable(T::Class[T.anything]), model: T.nilable(Orb::Converter::Input), - options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) } end @@ -80,13 +80,9 @@ module Orb end end + # @api private sig { returns(T.anything) } - def requester - end - - sig { params(_: T.anything).returns(T.anything) } - def requester=(_) - end + attr_accessor :requester # @api private sig do @@ -126,7 +122,7 @@ module Orb # @api private sig do overridable - .params(req: Orb::BaseClient::RequestComponentsShape, opts: T::Hash[Symbol, T.anything]) + .params(req: Orb::BaseClient::RequestComponentsShape, opts: Orb::Util::AnyHash) .returns(Orb::BaseClient::RequestInputShape) end private def build_request(req, opts) @@ -172,7 +168,7 @@ module Orb page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), stream: T.nilable(T::Class[T.anything]), model: T.nilable(Orb::Converter::Input), - options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(T.anything) end diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index a37937f3..157231f2 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -170,132 +170,116 @@ module Orb # # We can therefore convert string values to Symbols, but can't convert other # values safely. - class Enum - extend Orb::Converter - - abstract! - - Value = type_template(:out) + module Enum + include Orb::Converter - class << self - # All of the valid Symbol values for this enum. - sig { overridable.returns(T::Array[Value]) } - def values - end + # 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 - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - sig { void } - private def finalize! - end + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + sig { void } + private def finalize! end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other) + def ===(other) end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other) + def ==(other) end - class << self - # @api private - sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def coerce(value) - end + # @api private + sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def coerce(value) + end - # @api private - sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def dump(value) - end + # @api private + sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def dump(value) + end - # @api private - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def try_strict_coerce(value) - end + # @api private + sig do + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) + end + def try_strict_coerce(value) end end # @api private - class Union - extend Orb::Converter - - abstract! - - Variants = type_template(:out) + module Union + include Orb::Converter - class << self - # @api private - # - # All of the specified variant info for this union. - sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Variants)]]) } - private def known_variants - end + # @api private + # + # All of the specified variant info for this union. + sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Orb::Converter::Input)]]) } + private def known_variants + end - # @api private - sig { returns(T::Array[[T.nilable(Symbol), Variants]]) } - protected def derefed_variants - end + # @api private + sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) } + protected def derefed_variants + end - # All of the specified variants for this union. - sig { overridable.returns(T::Array[Variants]) } - def variants - end + # All of the specified variants for this union. + sig { overridable.returns(T::Array[T.anything]) } + def variants + end - # @api private - sig { params(property: Symbol).void } - private def discriminator(property) - end + # @api private + sig { params(property: Symbol).void } + private def discriminator(property) + end - # @api private - sig do - params( - key: T.any(Symbol, T::Hash[Symbol, T.anything], T.proc.returns(Variants), Variants), - spec: T.any(T::Hash[Symbol, T.anything], T.proc.returns(Variants), Variants) - ) - .void - end - private def variant(key, spec = nil) - end + # @api private + sig do + params( + key: T.any(Symbol, Orb::Util::AnyHash, T.proc.returns(T.anything), T.anything), + spec: T.any(Orb::Util::AnyHash, T.proc.returns(T.anything), T.anything) + ) + .void + end + private def variant(key, spec = nil) + end - # @api private - sig { params(value: T.anything).returns(T.nilable(Variants)) } - private def resolve_variant(value) - end + # @api private + sig { params(value: T.anything).returns(T.nilable(T.anything)) } + private def resolve_variant(value) end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other) + def ===(other) end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other) + def ==(other) end - class << self - # @api private - sig { override.params(value: T.anything).returns(T.anything) } - def coerce(value) - end + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def coerce(value) + end - # @api private - sig { override.params(value: T.anything).returns(T.anything) } - def dump(value) - end + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end - # @api private - sig do - override - .params(value: T.anything) - .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) - end - def try_strict_coerce(value) - end + # @api private + sig do + override + .params(value: T.anything) + .returns(T.any([T::Boolean, T.anything, NilClass], [T::Boolean, T::Boolean, Integer])) + end + def try_strict_coerce(value) end end @@ -310,12 +294,8 @@ module Orb sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) .returns(T.attached_class) end @@ -365,12 +345,8 @@ module Orb # @api private sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) .void end @@ -389,12 +365,8 @@ module Orb sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) .returns(T.attached_class) end @@ -413,7 +385,7 @@ module Orb sig(:final) do override .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + .returns(T.any(Orb::Util::AnyHash, T.anything)) end def coerce(value) end @@ -422,7 +394,7 @@ module Orb sig(:final) do override .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + .returns(T.any(Orb::Util::AnyHash, T.anything)) end def dump(value) end @@ -444,12 +416,8 @@ module Orb # @api private sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) .void end @@ -509,7 +477,7 @@ module Orb T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -521,11 +489,11 @@ module Orb params( name_sym: Symbol, type_info: T.any( - T::Hash[Symbol, T.anything], + Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -537,11 +505,11 @@ module Orb params( name_sym: Symbol, type_info: T.any( - T::Hash[Symbol, T.anything], + Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -615,7 +583,7 @@ module Orb # # This method is not recursive. The returned value is shared by the object, so it # should not be mutated. - sig { overridable.returns(T::Hash[Symbol, T.anything]) } + sig { overridable.returns(Orb::Util::AnyHash) } def to_h end @@ -627,11 +595,11 @@ module Orb # # This method is not recursive. The returned value is shared by the object, so it # should not be mutated. - sig { overridable.returns(T::Hash[Symbol, T.anything]) } + sig { overridable.returns(Orb::Util::AnyHash) } def to_hash end - sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.anything]) } + sig { params(keys: T.nilable(T::Array[Symbol])).returns(Orb::Util::AnyHash) } def deconstruct_keys(keys) end diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index 5391e471..7f098875 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -11,64 +11,49 @@ module Orb DEFAULT_MAX_RETRY_DELAY = T.let(8.0, Float) sig { returns(String) } - def api_key - end + attr_reader :api_key sig { returns(Orb::Resources::TopLevel) } - def top_level - end + attr_reader :top_level sig { returns(Orb::Resources::Coupons) } - def coupons - end + attr_reader :coupons sig { returns(Orb::Resources::CreditNotes) } - def credit_notes - end + attr_reader :credit_notes sig { returns(Orb::Resources::Customers) } - def customers - end + attr_reader :customers sig { returns(Orb::Resources::Events) } - def events - end + attr_reader :events sig { returns(Orb::Resources::InvoiceLineItems) } - def invoice_line_items - end + attr_reader :invoice_line_items sig { returns(Orb::Resources::Invoices) } - def invoices - end + attr_reader :invoices sig { returns(Orb::Resources::Items) } - def items - end + attr_reader :items sig { returns(Orb::Resources::Metrics) } - def metrics - end + attr_reader :metrics sig { returns(Orb::Resources::Plans) } - def plans - end + attr_reader :plans sig { returns(Orb::Resources::Prices) } - def prices - end + attr_reader :prices sig { returns(Orb::Resources::Subscriptions) } - def subscriptions - end + attr_reader :subscriptions sig { returns(Orb::Resources::Alerts) } - def alerts - end + attr_reader :alerts sig { returns(Orb::Resources::DimensionalPriceGroups) } - def dimensional_price_groups - end + attr_reader :dimensional_price_groups # @api private sig { override.returns(T::Hash[String, String]) } diff --git a/rbi/lib/orb/errors.rbi b/rbi/lib/orb/errors.rbi index 0689b357..861c86d0 100644 --- a/rbi/lib/orb/errors.rbi +++ b/rbi/lib/orb/errors.rbi @@ -3,12 +3,7 @@ module Orb class Error < StandardError sig { returns(T.nilable(StandardError)) } - def cause - end - - sig { params(_: T.nilable(StandardError)).returns(T.nilable(StandardError)) } - def cause=(_) - end + attr_accessor :cause end class ConversionError < Orb::Error @@ -16,28 +11,13 @@ module Orb class APIError < Orb::Error sig { returns(URI::Generic) } - def url - end - - sig { params(_: URI::Generic).returns(URI::Generic) } - def url=(_) - end + attr_accessor :url sig { returns(T.nilable(Integer)) } - def status - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def status=(_) - end + attr_accessor :status sig { returns(T.nilable(T.anything)) } - def body - end - - sig { params(_: T.nilable(T.anything)).returns(T.nilable(T.anything)) } - def body=(_) - end + attr_accessor :body # @api private sig do @@ -57,20 +37,10 @@ module Orb class APIConnectionError < Orb::APIError sig { void } - def status - end - - sig { params(_: NilClass).void } - def status=(_) - end + attr_accessor :status sig { void } - def body - end - - sig { params(_: NilClass).void } - def body=(_) - end + attr_accessor :body # @api private sig do @@ -122,12 +92,7 @@ module Orb end sig { returns(Integer) } - def status - end - - sig { params(_: Integer).returns(Integer) } - def status=(_) - end + attr_accessor :status # @api private sig do diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index faa5abbf..d3d7a2ae 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -5,99 +5,56 @@ module Orb class Alert < Orb::BaseModel # Also referred to as alert_id in this documentation. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The name of the currency the credit balance or invoice cost is denominated in. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # The customer the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Customer)) } - def customer - end + attr_reader :customer - sig { params(_: T.nilable(Orb::Models::Alert::Customer)).returns(T.nilable(Orb::Models::Alert::Customer)) } - def customer=(_) - end + sig { params(customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Util::AnyHash))).void } + attr_writer :customer # Whether the alert is enabled or disabled. sig { returns(T::Boolean) } - def enabled - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def enabled=(_) - end + attr_accessor :enabled # The metric the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Metric)) } - def metric - end + attr_reader :metric - sig { params(_: T.nilable(Orb::Models::Alert::Metric)).returns(T.nilable(Orb::Models::Alert::Metric)) } - def metric=(_) - end + sig { params(metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Util::AnyHash))).void } + attr_writer :metric # The plan the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Plan)) } - def plan - end + attr_reader :plan - sig { params(_: T.nilable(Orb::Models::Alert::Plan)).returns(T.nilable(Orb::Models::Alert::Plan)) } - def plan=(_) - end + sig { params(plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Util::AnyHash))).void } + attr_writer :plan # The subscription the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Subscription)) } - def subscription - end + attr_reader :subscription - sig do - params(_: T.nilable(Orb::Models::Alert::Subscription)).returns(T.nilable(Orb::Models::Alert::Subscription)) - end - def subscription=(_) - end + sig { params(subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Util::AnyHash))).void } + 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])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::Alert::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds # The type of alert. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Alert::Type::TaggedSymbol) } + attr_accessor :type # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending, # usage, or credit balance and trigger webhooks when a threshold is exceeded. @@ -109,13 +66,13 @@ module Orb id: String, created_at: Time, currency: T.nilable(String), - customer: T.nilable(Orb::Models::Alert::Customer), + customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Util::AnyHash)), enabled: T::Boolean, - metric: T.nilable(Orb::Models::Alert::Metric), - plan: T.nilable(Orb::Models::Alert::Plan), - subscription: T.nilable(Orb::Models::Alert::Subscription), - thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), - type: Symbol + metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Util::AnyHash)), + plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Util::AnyHash)), + subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Util::AnyHash)), + thresholds: T.nilable(T::Array[T.any(Orb::Models::Alert::Threshold, Orb::Util::AnyHash)]), + type: Orb::Models::Alert::Type::OrSymbol ) .returns(T.attached_class) end @@ -135,7 +92,7 @@ module Orb plan: T.nilable(Orb::Models::Alert::Plan), subscription: T.nilable(Orb::Models::Alert::Subscription), thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), - type: Symbol + type: Orb::Models::Alert::Type::TaggedSymbol } ) end @@ -144,20 +101,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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) } @@ -171,12 +118,7 @@ module Orb class Metric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The metric the alert applies to. sig { params(id: String).returns(T.attached_class) } @@ -190,39 +132,19 @@ module Orb class Plan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # 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. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig { returns(String) } - def plan_version - end - - sig { params(_: String).returns(String) } - def plan_version=(_) - end + attr_accessor :plan_version # The plan the alert applies to. sig do @@ -254,12 +176,7 @@ module Orb class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The subscription the alert applies to. sig { params(id: String).returns(T.attached_class) } @@ -276,12 +193,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. @@ -295,16 +207,23 @@ module Orb end # The type of alert. This must be a valid alert type. - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Alert::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Alert::Type::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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) - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered - USAGE_EXCEEDED = :usage_exceeded - COST_EXCEEDED = :cost_exceeded + class << self + sig { override.returns(T::Array[Orb::Models::Alert::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/alert_create_for_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_customer_params.rbi index eb7918fe..2972efb2 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -8,40 +8,22 @@ module Orb # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::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])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Util::AnyHash)]), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb .returns( { currency: String, - type: Symbol, + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), request_options: Orb::RequestOptions } @@ -63,14 +45,24 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForCustomerParams::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) } + + CREDIT_BALANCE_DEPLETED = + T.let(:credit_balance_depleted, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = + T.let(:credit_balance_dropped, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = + T.let(:credit_balance_recovered, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol]) } + def values + end + end end class Threshold < Orb::BaseModel @@ -78,12 +70,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. diff --git a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi index 24170e1e..6ba342d5 100644 --- a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi @@ -8,40 +8,24 @@ module Orb # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::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])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: T.nilable( + T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Util::AnyHash)] + ), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +37,7 @@ module Orb .returns( { currency: String, - type: Symbol, + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), request_options: Orb::RequestOptions } @@ -63,14 +47,25 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) } + + CREDIT_BALANCE_DEPLETED = + T.let(:credit_balance_depleted, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = + T.let(:credit_balance_dropped, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = + T.let(:credit_balance_recovered, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol]) } + def values + end + end end class Threshold < Orb::BaseModel @@ -78,12 +73,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. diff --git a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi index ef6aafe8..5844f512 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -8,40 +8,22 @@ module Orb # The thresholds that define the values at which the alert will be triggered. sig { returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) } - def thresholds - end - - sig do - params(_: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) - .returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) - end - def thresholds=(_) - end + attr_accessor :thresholds # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol) } + attr_accessor :type # The metric to track usage for. sig { returns(T.nilable(String)) } - def metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def metric_id=(_) - end + attr_accessor :metric_id sig do params( - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Util::AnyHash)], + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb .returns( { thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), request_options: Orb::RequestOptions } @@ -67,12 +49,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. @@ -86,13 +63,22 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) } - USAGE_EXCEEDED = :usage_exceeded - COST_EXCEEDED = :cost_exceeded + USAGE_EXCEEDED = + T.let(:usage_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) + COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index ff81e986..e9b8fe52 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -8,17 +8,12 @@ module Orb # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index fbd0f2ec..fbe1b5be 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -8,17 +8,12 @@ module Orb # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index cec3e609..d50abfc3 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -7,82 +7,40 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # Fetch alerts scoped to this customer_id sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # Fetch alerts scoped to this external_customer_id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # Fetch alerts scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( @@ -95,7 +53,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_retrieve_params.rbi b/rbi/lib/orb/models/alert_retrieve_params.rbi index b9f7fd0d..a0597dfb 100644 --- a/rbi/lib/orb/models/alert_retrieve_params.rbi +++ b/rbi/lib/orb/models/alert_retrieve_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index a77509b8..6b8c0397 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -8,20 +8,12 @@ module Orb # The thresholds that define the values at which the alert will be triggered. sig { returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) } - def thresholds - end - - sig do - params(_: T::Array[Orb::Models::AlertUpdateParams::Threshold]) - .returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( - thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Util::AnyHash)], + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -42,12 +34,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index 8573c352..2dfe7df0 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -5,44 +5,24 @@ module Orb class AmountDiscount < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # 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]) } - def applies_to_price_ids - end + attr_accessor :applies_to_price_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::AmountDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( amount_discount: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, reason: T.nilable(String) ) .returns(T.attached_class) @@ -56,7 +36,7 @@ module Orb { amount_discount: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, reason: T.nilable(String) } ) @@ -64,12 +44,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AmountDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + AMOUNT = T.let(:amount, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) - AMOUNT = :amount + class << self + sig { override.returns(T::Array[Orb::Models::AmountDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index f2d762f2..25d14c53 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -4,59 +4,32 @@ module Orb module Models class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # 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) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Item).returns(Orb::Models::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Item, Orb::Util::AnyHash)).void } + attr_writer :item # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(String) } - def name - end + attr_accessor :name - sig { params(_: String).returns(String) } - def name=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::BillableMetric::Status::TaggedSymbol) } + attr_accessor :status # The Metric resource represents a calculation of a quantity based on events. # Metrics are defined by the query that transforms raw usage events into @@ -65,10 +38,10 @@ module Orb params( id: String, description: T.nilable(String), - item: Orb::Models::Item, + item: T.any(Orb::Models::Item, Orb::Util::AnyHash), metadata: T::Hash[Symbol, String], name: String, - status: Symbol + status: Orb::Models::BillableMetric::Status::OrSymbol ) .returns(T.attached_class) end @@ -84,21 +57,28 @@ module Orb item: Orb::Models::Item, metadata: T::Hash[Symbol, String], name: String, - status: Symbol + status: Orb::Models::BillableMetric::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillableMetric::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::BillableMetric::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - DRAFT = :draft - ARCHIVED = :archived + class << self + sig { override.returns(T::Array[Orb::Models::BillableMetric::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/billing_cycle_relative_date.rbi b/rbi/lib/orb/models/billing_cycle_relative_date.rbi index 4fd681b7..547b9087 100644 --- a/rbi/lib/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/lib/orb/models/billing_cycle_relative_date.rbi @@ -2,13 +2,20 @@ module Orb module Models - class BillingCycleRelativeDate < Orb::Enum - abstract! + module BillingCycleRelativeDate + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillingCycleRelativeDate) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) } - START_OF_TERM = :start_of_term - END_OF_TERM = :end_of_term + START_OF_TERM = T.let(:start_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) + END_OF_TERM = T.let(:end_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index ee36a38a..775bf1a0 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -5,71 +5,33 @@ module Orb class Coupon < Orb::BaseModel # Also referred to as coupon_id in this documentation. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # An archived coupon can no longer be redeemed. Active coupons will have a value # of null for `archived_at`; this field will be non-null for archived coupons. sig { returns(T.nilable(Time)) } - def archived_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def archived_at=(_) - end + attr_accessor :archived_at sig { returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) } - def discount - end - - sig do - params(_: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) - .returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) - end - def discount=(_) - end + attr_accessor :discount # This allows for a coupon's discount to apply for a limited time (determined in # months); a `null` value here means "unlimited time". sig { returns(T.nilable(Integer)) } - def duration_in_months - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration_in_months=(_) - end + attr_accessor :duration_in_months # The maximum number of redemptions allowed for this coupon before it is # exhausted; `null` here means "unlimited". sig { returns(T.nilable(Integer)) } - def max_redemptions - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_redemptions=(_) - end + attr_accessor :max_redemptions # This string can be used to redeem this coupon for a given subscription. sig { returns(String) } - def redemption_code - end - - sig { params(_: String).returns(String) } - def redemption_code=(_) - end + attr_accessor :redemption_code # The number of times this coupon has been redeemed. sig { returns(Integer) } - def times_redeemed - end - - sig { params(_: Integer).returns(Integer) } - def times_redeemed=(_) - end + attr_accessor :times_redeemed # 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 @@ -80,7 +42,7 @@ module Orb params( id: String, archived_at: T.nilable(Time), - discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), + discount: T.any(Orb::Models::PercentageDiscount, Orb::Util::AnyHash, Orb::Models::AmountDiscount), duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), redemption_code: String, @@ -108,11 +70,17 @@ module Orb def to_hash end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)} } + + class << self + sig { override.returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/coupon_archive_params.rbi b/rbi/lib/orb/models/coupon_archive_params.rbi index 176048c6..62a9aa7b 100644 --- a/rbi/lib/orb/models/coupon_archive_params.rbi +++ b/rbi/lib/orb/models/coupon_archive_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 4a747ff4..b410349d 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -14,65 +14,33 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ) - ) - .returns( - T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ) - ) - end - def discount=(_) - end + attr_accessor :discount # This string can be used to redeem this coupon for a given subscription. sig { returns(String) } - def redemption_code - end - - sig { params(_: String).returns(String) } - def redemption_code=(_) - end + attr_accessor :redemption_code # This allows for a coupon's discount to apply for a limited time (determined in # months); a `null` value here means "unlimited time". sig { returns(T.nilable(Integer)) } - def duration_in_months - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration_in_months=(_) - end + attr_accessor :duration_in_months # The maximum number of redemptions allowed for this coupon before it is # exhausted;`null` here means "unlimited". sig { returns(T.nilable(Integer)) } - def max_redemptions - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_redemptions=(_) - end + attr_accessor :max_redemptions sig do params( discount: T.any( Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -97,8 +65,8 @@ module Orb def to_hash end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union Variants = type_template(:out) do @@ -112,20 +80,10 @@ module Orb class NewCouponPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(percentage_discount:, discount_type: :percentage) @@ -138,20 +96,10 @@ module Orb class NewCouponAmountDiscount < Orb::BaseModel sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { params(amount_discount: String, discount_type: Symbol).returns(T.attached_class) } def self.new(amount_discount:, discount_type: :amount) @@ -161,6 +109,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/coupon_fetch_params.rbi b/rbi/lib/orb/models/coupon_fetch_params.rbi index 9f5d5c53..325487b2 100644 --- a/rbi/lib/orb/models/coupon_fetch_params.rbi +++ b/rbi/lib/orb/models/coupon_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index 11e39568..1e183541 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -9,40 +9,23 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # Filter to coupons matching this redemption code. sig { returns(T.nilable(String)) } - def redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def redemption_code=(_) - end + attr_accessor :redemption_code # Show archived coupons as well (by default, this endpoint only returns active # coupons). sig { returns(T.nilable(T::Boolean)) } - def show_archived - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def show_archived=(_) - end + attr_accessor :show_archived sig do params( @@ -50,7 +33,7 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index c389a6b4..90659593 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -10,27 +10,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index 47813e20..ae2c7fbb 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -5,151 +5,78 @@ module Orb class CreditNote < Orb::BaseModel # The Orb id of this credit note. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The unique identifier for credit notes. sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # A URL to a PDF of the credit note. sig { returns(T.nilable(String)) } - def credit_note_pdf - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def credit_note_pdf=(_) - end + attr_accessor :credit_note_pdf sig { returns(Orb::Models::CreditNote::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::CreditNote::Customer).returns(Orb::Models::CreditNote::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::CreditNote::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # The id of the invoice resource that this credit note is applied to. sig { returns(String) } - def invoice_id - end - - sig { params(_: String).returns(String) } - def invoice_id=(_) - end + attr_accessor :invoice_id # All of the line items associated with this credit note. sig { returns(T::Array[Orb::Models::CreditNote::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem]).returns(T::Array[Orb::Models::CreditNote::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # The maximum amount applied on the original invoice sig { returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) } - def maximum_amount_adjustment - end + attr_reader :maximum_amount_adjustment sig do - params(_: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) - .returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) - end - def maximum_amount_adjustment=(_) + params( + maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum_amount_adjustment # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # Any credited amount from the applied minimum on the invoice. sig { returns(T.nilable(String)) } - def minimum_amount_refunded - end + attr_accessor :minimum_amount_refunded - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount_refunded=(_) - end - - sig { returns(T.nilable(Symbol)) } - def reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def reason=(_) - end + sig { returns(T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol)) } + attr_accessor :reason # The total prior to any creditable invoice-level discounts or minimums. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # The total including creditable invoice-level discounts or minimums, and tax. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end - - sig { returns(Symbol) } - def type - end + attr_accessor :total - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CreditNote::Type::TaggedSymbol) } + attr_accessor :type # The time at which the credit note was voided in Orb, if applicable. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # Any discounts applied on the original invoice. sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount])) } - def discounts - end + attr_reader :discounts - sig do - params(_: T::Array[Orb::Models::CreditNote::Discount]).returns(T::Array[Orb::Models::CreditNote::Discount]) - end - def discounts=(_) - end + sig { params(discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Util::AnyHash)]).void } + attr_writer :discounts # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has # been applied to a particular invoice. @@ -159,18 +86,18 @@ module Orb created_at: Time, credit_note_number: String, credit_note_pdf: T.nilable(String), - customer: Orb::Models::CreditNote::Customer, + customer: T.any(Orb::Models::CreditNote::Customer, Orb::Util::AnyHash), invoice_id: String, - line_items: T::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), + line_items: T::Array[T.any(Orb::Models::CreditNote::LineItem, Orb::Util::AnyHash)], + maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Util::AnyHash)), memo: T.nilable(String), minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNote::Reason::OrSymbol), subtotal: String, total: String, - type: Symbol, + type: Orb::Models::CreditNote::Type::OrSymbol, voided_at: T.nilable(Time), - discounts: T::Array[Orb::Models::CreditNote::Discount] + discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -208,10 +135,10 @@ module Orb maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), memo: T.nilable(String), minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol), subtotal: String, total: String, - type: Symbol, + type: Orb::Models::CreditNote::Type::TaggedSymbol, voided_at: T.nilable(Time), discounts: T::Array[Orb::Models::CreditNote::Discount] } @@ -222,20 +149,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -249,81 +166,38 @@ module Orb class LineItem < Orb::BaseModel # The Orb id of this resource. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the line item, including any line item minimums and discounts. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The id of the item associated with this line item. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The name of the corresponding invoice line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # An optional quantity credited. sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity # The amount of the line item, excluding any line item minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Any tax amounts applied onto the line item. sig { returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + 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])) } - def discounts - end + attr_reader :discounts - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::Discount]) - .returns(T::Array[Orb::Models::CreditNote::LineItem::Discount]) - end - def discounts=(_) - end + sig { params(discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Util::AnyHash)]).void } + attr_writer :discounts sig do params( @@ -333,8 +207,8 @@ module Orb 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] + tax_amounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::TaxAmount, Orb::Util::AnyHash)], + discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -362,30 +236,15 @@ module Orb class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -409,67 +268,32 @@ module Orb class Discount < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def amount_applied - end - - sig { params(_: String).returns(String) } - def amount_applied=(_) - end + attr_accessor :amount_applied sig { returns(T::Array[String]) } - def applies_to_price_ids - end + attr_accessor :applies_to_price_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( id: String, amount_applied: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::OrSymbol, percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) @@ -494,7 +318,7 @@ module Orb id: String, amount_applied: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol, percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) @@ -504,68 +328,50 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) } - PERCENTAGE = :percentage - AMOUNT = :amount + PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) + AMOUNT = T.let(:amount, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol]) } + def values + end + end end end end class MaximumAmountAdjustment < Orb::BaseModel sig { returns(String) } - def amount_applied - end + attr_accessor :amount_applied - sig { params(_: String).returns(String) } - def amount_applied=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) } - def applies_to_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) - .returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) - end - def applies_to_prices=(_) - end + attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The maximum amount applied on the original invoice sig do params( amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), + applies_to_prices: T.nilable( + T::Array[T.any(Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice, Orb::Util::AnyHash)] + ), reason: T.nilable(String) ) .returns(T.attached_class) @@ -578,7 +384,7 @@ module Orb .returns( { amount_applied: String, - discount_type: Symbol, + 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) @@ -588,30 +394,30 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) } - PERCENTAGE = :percentage + PERCENTAGE = + T.let(:percentage, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol]) } + def values + end + end end class AppliesToPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -623,76 +429,62 @@ module Orb end end - class Reason < Orb::Enum - abstract! + module Reason + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Reason) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Reason::TaggedSymbol) } - DUPLICATE = :Duplicate - FRAUDULENT = :Fraudulent - ORDER_CHANGE = :"Order change" - PRODUCT_UNSATISFACTORY = :"Product unsatisfactory" + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Reason::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Type::TaggedSymbol) } - REFUND = :refund - ADJUSTMENT = :adjustment + REFUND = T.let(:refund, Orb::Models::CreditNote::Type::TaggedSymbol) + ADJUSTMENT = T.let(:adjustment, Orb::Models::CreditNote::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Type::TaggedSymbol]) } + def values + end + end end class Discount < Orb::BaseModel sig { returns(String) } - def amount_applied - end - - sig { params(_: String).returns(String) } - def amount_applied=(_) - end - - sig { returns(Symbol) } - def discount_type - end + attr_accessor :amount_applied - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) } - def applies_to_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) - .returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) - end - def applies_to_prices=(_) - end + attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::Discount::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), + applies_to_prices: T.nilable(T::Array[T.any(Orb::Models::CreditNote::Discount::AppliesToPrice, Orb::Util::AnyHash)]), reason: T.nilable(String) ) .returns(T.attached_class) @@ -705,7 +497,7 @@ module Orb .returns( { amount_applied: String, - discount_type: Symbol, + 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) @@ -715,30 +507,27 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Discount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol]) } + def values + end + end end class AppliesToPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index 6b4a7e6a..a143a82d 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -7,40 +7,22 @@ module Orb include Orb::RequestParameters sig { returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) - .returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # An optional memo to attach to the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # An optional reason for the credit note. - sig { returns(T.nilable(Symbol)) } - def reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def reason=(_) - end + sig { returns(T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol)) } + attr_accessor :reason sig do params( - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Util::AnyHash)], memo: T.nilable(String), - reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb { line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -64,21 +46,11 @@ module Orb class LineItem < Orb::BaseModel # The total amount in the invoice's currency to credit this line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The ID of the line item to credit. sig { returns(String) } - def invoice_line_item_id - end - - sig { params(_: String).returns(String) } - def invoice_line_item_id=(_) - end + attr_accessor :invoice_line_item_id sig { params(amount: String, invoice_line_item_id: String).returns(T.attached_class) } def self.new(amount:, invoice_line_item_id:) @@ -90,15 +62,23 @@ module Orb end # An optional reason for the credit note. - class Reason < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DUPLICATE = :duplicate - FRAUDULENT = :fraudulent - ORDER_CHANGE = :order_change - PRODUCT_UNSATISFACTORY = :product_unsatisfactory + module Reason + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNoteCreateParams::Reason) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) } + + 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) + PRODUCT_UNSATISFACTORY = + T.let(:product_unsatisfactory, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/credit_note_fetch_params.rbi b/rbi/lib/orb/models/credit_note_fetch_params.rbi index 524f0bf9..d29a47b6 100644 --- a/rbi/lib/orb/models/credit_note_fetch_params.rbi +++ b/rbi/lib/orb/models/credit_note_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index 7162c98d..8cd5de4b 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index 19d6f383..724baa9f 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -4,172 +4,85 @@ module Orb module Models class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T::Array[String]) } - def additional_emails - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def additional_emails=(_) - end + attr_accessor :additional_emails sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The customer's current balance in their currency. sig { returns(String) } - def balance - end - - sig { params(_: String).returns(String) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Orb::Models::Customer::BillingAddress)) } - def billing_address - end + attr_reader :billing_address - sig do - params(_: T.nilable(Orb::Models::Customer::BillingAddress)) - .returns(T.nilable(Orb::Models::Customer::BillingAddress)) - end - def billing_address=(_) - end + sig { params(billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Util::AnyHash))).void } + attr_writer :billing_address sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # 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. sig { returns(String) } - def email - end - - sig { params(_: String).returns(String) } - def email=(_) - end + attr_accessor :email sig { returns(T::Boolean) } - def email_delivery - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def email_delivery=(_) - end + attr_accessor :email_delivery sig { returns(T.nilable(T::Boolean)) } - def exempt_from_automated_tax - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def exempt_from_automated_tax=(_) - end + attr_accessor :exempt_from_automated_tax # An optional user-defined ID for this customer resource, used throughout the # system as an alias for this Customer. Use this field to identify a customer by # an existing identifier in your system. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(Orb::Models::Customer::Hierarchy) } - def hierarchy - end + attr_reader :hierarchy - sig { params(_: Orb::Models::Customer::Hierarchy).returns(Orb::Models::Customer::Hierarchy) } - def hierarchy=(_) - end + sig { params(hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Util::AnyHash)).void } + attr_writer :hierarchy # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # 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(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::Customer::PaymentProvider::TaggedSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(String)) } - def portal_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def portal_url=(_) - end + attr_accessor :portal_url sig { returns(T.nilable(Orb::Models::Customer::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address - sig do - params(_: T.nilable(Orb::Models::Customer::ShippingAddress)) - .returns(T.nilable(Orb::Models::Customer::ShippingAddress)) - end - def shipping_address=(_) - end + sig { params(shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Util::AnyHash))).void } + attr_writer :shipping_address # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -277,45 +190,38 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::Customer::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig { params(_: T.nilable(Orb::Models::Customer::TaxID)).returns(T.nilable(Orb::Models::Customer::TaxID)) } - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as # "America/Los_Angeles". This "defaults to your account's timezone if not set. # This cannot be changed after customer creation. sig { returns(String) } - def timezone - end - - sig { params(_: String).returns(String) } - def timezone=(_) - end + attr_accessor :timezone sig { returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration sig { returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::Customer::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -341,24 +247,24 @@ module Orb additional_emails: T::Array[String], auto_collection: T::Boolean, balance: String, - billing_address: T.nilable(Orb::Models::Customer::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Util::AnyHash)), 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, + hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Util::AnyHash), metadata: T::Hash[Symbol, String], name: String, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Customer::PaymentProvider::OrSymbol), 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), + shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Util::AnyHash)), + tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Util::AnyHash)), timezone: String, - accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), - reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) + accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Util::AnyHash)), + reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -406,7 +312,7 @@ module Orb hierarchy: Orb::Models::Customer::Hierarchy, metadata: T::Hash[Symbol, String], name: String, - payment_provider: T.nilable(Symbol), + 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), @@ -422,52 +328,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -502,32 +378,19 @@ module Orb class Hierarchy < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customer::Hierarchy::Child]) } - def children - end - - sig do - params(_: T::Array[Orb::Models::Customer::Hierarchy::Child]) - .returns(T::Array[Orb::Models::Customer::Hierarchy::Child]) - end - def children=(_) - end + attr_accessor :children sig { returns(T.nilable(Orb::Models::Customer::Hierarchy::Parent)) } - def parent - end + attr_reader :parent - sig do - params(_: T.nilable(Orb::Models::Customer::Hierarchy::Parent)) - .returns(T.nilable(Orb::Models::Customer::Hierarchy::Parent)) - end - def parent=(_) - end + sig { params(parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Util::AnyHash))).void } + attr_writer :parent # The hierarchical relationships for this customer. sig do params( - children: T::Array[Orb::Models::Customer::Hierarchy::Child], - parent: T.nilable(Orb::Models::Customer::Hierarchy::Parent) + children: T::Array[T.any(Orb::Models::Customer::Hierarchy::Child, Orb::Util::AnyHash)], + parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -548,20 +411,10 @@ module Orb class Child < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -574,20 +427,10 @@ module Orb class Parent < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -602,66 +445,43 @@ 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. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::PaymentProvider) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::PaymentProvider::TaggedSymbol) } - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -695,29 +515,14 @@ module Orb end class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end + sig { returns(Orb::Models::Customer::TaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customer::TaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -824,201 +629,218 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::Customer::TaxID::Country::OrSymbol, + type: Orb::Models::Customer::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::Customer::TaxID::Country::TaggedSymbol, + type: Orb::Models::Customer::TaxID::Type::TaggedSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Country) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::TaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::TaxID::Type::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Type::TaggedSymbol]) } + def values + end + end end end class AccountingSyncConfiguration < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) } - def accounting_providers - end - - sig do - params(_: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) - .returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T::Boolean) } - def excluded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: T::Array[T.any(Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider, Orb::Util::AnyHash)], excluded: T::Boolean ) .returns(T.attached_class) @@ -1040,50 +862,78 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(T.nilable(String)) } - def external_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_provider_id=(_) - end - - sig { returns(Symbol) } - def provider_type - end + attr_accessor :external_provider_id - sig { params(_: Symbol).returns(Symbol) } - def provider_type=(_) + sig do + returns( + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) end + attr_accessor :provider_type sig do - params(external_provider_id: T.nilable(String), provider_type: Symbol).returns(T.attached_class) + params( + external_provider_id: T.nilable(String), + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::OrSymbol + ) + .returns(T.attached_class) end def self.new(external_provider_id:, provider_type:) end - sig { override.returns({external_provider_id: T.nilable(String), provider_type: Symbol}) } + sig do + override + .returns( + { + external_provider_id: T.nilable(String), + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + } + ) + end def to_hash end - class ProviderType < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - NETSUITE = :netsuite + module ProviderType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + end + + QUICKBOOKS = + T.let( + :quickbooks, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol] + ) + end + def values + end + end end end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index 0477d112..c685dd94 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -10,162 +10,104 @@ module Orb # through a payment gateway, this email will be used for any automatically issued # receipts. sig { returns(String) } - def email - end - - sig { params(_: String).returns(String) } - def email=(_) - end + attr_accessor :email # The full name of the customer sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # An optional user-defined ID for this customer resource, used throughout the # system as an alias for this Customer. Use this field to identify a customer by # an existing identifier in your system. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy - sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) - end - def hierarchy=(_) - end + sig { params(hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash))).void } + attr_writer :hierarchy # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # 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(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -177,29 +119,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - end - def tax_configuration=(_) - end + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -307,53 +227,44 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) - end - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as # `"America/Los_Angeles"`. This defaults to your account's timezone if not set. # This cannot be changed after customer creation. sig { returns(T.nilable(String)) } - def timezone - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def timezone=(_) - end + attr_accessor :timezone sig do params( email: String, name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash)), timezone: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -395,7 +306,7 @@ module Orb 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(Symbol), + 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), @@ -420,31 +331,21 @@ module Orb T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) ) end - def accounting_providers - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - .returns( - T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), + accounting_providers: T.nilable( + T::Array[ + T.any( + Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] + ), excluded: T.nilable(T::Boolean) ) .returns(T.attached_class) @@ -466,20 +367,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + 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:) @@ -493,52 +384,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -575,22 +436,15 @@ module Orb # 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])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -610,26 +464,29 @@ 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. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -642,52 +499,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -720,8 +547,8 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union Variants = type_template(:out) do @@ -735,28 +562,13 @@ module Orb class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -780,20 +592,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + 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) @@ -803,32 +605,28 @@ module Orb def to_hash end end - end - - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -935,175 +733,206 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customer_delete_params.rbi b/rbi/lib/orb/models/customer_delete_params.rbi index 5a86a705..dc83c09e 100644 --- a/rbi/lib/orb/models/customer_delete_params.rbi +++ b/rbi/lib/orb/models/customer_delete_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi index a59fb9fb..433ea598 100644 --- a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_fetch_params.rbi b/rbi/lib/orb/models/customer_fetch_params.rbi index 38dfc7b4..bcae34d2 100644 --- a/rbi/lib/orb/models/customer_fetch_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index 765a281d..33e88b4c 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi index 47183301..d385c3b5 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi index cac2266b..f4c61f1e 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi index edd1baf8..4ec10923 100644 --- a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi @@ -7,119 +7,78 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # A valid customer email, to be used for invoicing and notifications. sig { returns(T.nilable(String)) } - def email - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def email=(_) - end + attr_accessor :email sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # The external customer ID. This can only be set if empty and the customer has no # past or current subscriptions. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) - end - def hierarchy=(_) + params( + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)) + ) + .void end + attr_writer :hierarchy # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: @@ -128,45 +87,37 @@ 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(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -178,29 +129,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - end - def tax_configuration=(_) - end + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -308,41 +237,44 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) } - def tax_id - end + attr_reader :tax_id sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) - end - def tax_id=(_) + params(tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash))) + .void end + attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)), 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), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash)), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -383,7 +315,7 @@ module Orb hierarchy: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), @@ -409,36 +341,20 @@ module Orb ) ) end - def accounting_providers - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] - ) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( accounting_providers: T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + T::Array[ + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] ), excluded: T.nilable(T::Boolean) ) @@ -463,20 +379,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + 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:) @@ -490,52 +396,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -572,22 +448,15 @@ module Orb # 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])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -611,26 +480,34 @@ 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. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) } + + QUICKBOOKS = + T.let(:quickbooks, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + BILL_COM = + T.let(:"bill.com", Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = + T.let(:stripe_charge, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = + T.let(:stripe_invoice, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -643,52 +520,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -721,8 +568,8 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union Variants = type_template(:out) do @@ -736,28 +583,13 @@ module Orb class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -781,20 +613,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + 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) @@ -804,32 +626,28 @@ module Orb def to_hash end end - end - - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -936,175 +754,208 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index efd2d5dd..9ae32caa 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -7,119 +7,71 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # A valid customer email, to be used for invoicing and notifications. sig { returns(T.nilable(String)) } - def email - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def email=(_) - end + attr_accessor :email sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # The external customer ID. This can only be set if empty and the customer has no # past or current subscriptions. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy - sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) - end - def hierarchy=(_) - end + sig { params(hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash))).void } + attr_writer :hierarchy # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: @@ -128,45 +80,35 @@ 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(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -178,29 +120,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - ) - ) - end - def tax_configuration=(_) - end + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -308,41 +228,37 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) - end - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)), 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), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash)), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -383,7 +299,7 @@ module Orb hierarchy: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), @@ -407,31 +323,21 @@ module Orb T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) ) end - def accounting_providers - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - .returns( - T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), + accounting_providers: T.nilable( + T::Array[ + T.any( + Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] + ), excluded: T.nilable(T::Boolean) ) .returns(T.attached_class) @@ -453,20 +359,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + 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:) @@ -480,52 +376,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -562,22 +428,15 @@ module Orb # 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])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -601,26 +460,29 @@ 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. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -633,52 +495,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -711,8 +543,8 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union Variants = type_template(:out) do @@ -726,28 +558,13 @@ module Orb class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -771,20 +588,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + 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) @@ -794,32 +601,28 @@ module Orb def to_hash end end - end - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -926,175 +729,206 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi index 6bd75bc3..5ece65ca 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -8,36 +8,21 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end - - sig { returns(Symbol) } - def type - end + attr_accessor :amount - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol) } + attr_accessor :type # An optional description that can be specified around this entry. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig do params( amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -49,7 +34,7 @@ module Orb .returns( { amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), request_options: Orb::RequestOptions } @@ -58,13 +43,22 @@ module Orb def to_hash end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) - INCREMENT = :increment - DECREMENT = :decrement + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi index 00c30910..ee597d45 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -6,110 +6,70 @@ module Orb class BalanceTransactionCreateResponse < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end + attr_accessor :starting_balance - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::OrSymbol ) .returns(T.attached_class) end @@ -132,7 +92,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), @@ -140,38 +100,60 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + PRORATED_REFUND = + T.let(:prorated_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let( + :return_from_voiding, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + CREDIT_NOTE_APPLIED = + T.let( + :credit_note_applied, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + CREDIT_NOTE_VOIDED = + T.let(:credit_note_voided, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -185,12 +167,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -201,13 +178,24 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = + T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + DECREMENT = + T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi index f2c8375f..483d56ec 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -10,53 +10,26 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(Time)) } - def operation_time_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_gt=(_) - end + attr_accessor :operation_time_gt sig { returns(T.nilable(Time)) } - def operation_time_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_gte=(_) - end + attr_accessor :operation_time_gte sig { returns(T.nilable(Time)) } - def operation_time_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_lt=(_) - end + attr_accessor :operation_time_lt sig { returns(T.nilable(Time)) } - def operation_time_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_lte=(_) - end + attr_accessor :operation_time_lte sig do params( @@ -66,7 +39,7 @@ 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, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi index bc5822c0..4918e2bd 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -6,110 +6,70 @@ module Orb class BalanceTransactionListResponse < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end + attr_accessor :starting_balance - sig { params(_: String).returns(String) } - def starting_balance=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionListResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionListResponse::Type::OrSymbol ) .returns(T.attached_class) end @@ -132,7 +92,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), @@ -140,38 +100,54 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + PRORATED_REFUND = + 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) + CREDIT_NOTE_APPLIED = + 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) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -185,12 +161,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -201,13 +172,22 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi index 5f794871..bdfe86ab 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi @@ -9,50 +9,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +46,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -78,13 +58,23 @@ 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. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let(:cumulative, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi index 83f9d5ea..467f40bf 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi @@ -5,18 +5,12 @@ module Orb module Customers class CostListByExternalIDResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) - .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) - end - def data=(_) - end + attr_accessor :data sig do - params(data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) + params( + data: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(data:) @@ -28,53 +22,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -136,118 +102,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 6e8b621b..4af8f171 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -9,50 +9,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +46,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -78,13 +58,20 @@ 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. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListParams::ViewMode) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_response.rbi b/rbi/lib/orb/models/customers/cost_list_response.rbi index 557ac669..95e0e6ac 100644 --- a/rbi/lib/orb/models/customers/cost_list_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_response.rbi @@ -5,17 +5,12 @@ module Orb module Customers class CostListResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data]) - .returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::Customers::CostListResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -25,53 +20,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -133,118 +100,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi index 44732388..be717b13 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi @@ -9,41 +9,27 @@ module Orb # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # If set to True, all expired and depleted blocks, as well as active block will be # returned. sig { returns(T.nilable(T::Boolean)) } - def include_all_blocks - end + attr_reader :include_all_blocks - sig { params(_: T::Boolean).returns(T::Boolean) } - def include_all_blocks=(_) - end + sig { params(include_all_blocks: T::Boolean).void } + attr_writer :include_all_blocks # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -51,7 +37,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi index fbff485a..05c95838 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi @@ -5,60 +5,25 @@ module Orb module Customers class CreditListByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def balance - end - - sig { params(_: Float).returns(Float) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(Float)) } - def maximum_initial_balance - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_initial_balance=(_) - end + attr_accessor :maximum_initial_balance sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end + attr_accessor :per_unit_cost_basis - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) } + attr_accessor :status sig do params( @@ -68,7 +33,7 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::OrSymbol ) .returns(T.attached_class) end @@ -85,20 +50,30 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) + PENDING_PAYMENT = + T.let(:pending_payment, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) - ACTIVE = :active - PENDING_PAYMENT = :pending_payment + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_params.rbi b/rbi/lib/orb/models/customers/credit_list_params.rbi index 043c9823..2653dcdf 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -9,41 +9,27 @@ module Orb # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # If set to True, all expired and depleted blocks, as well as active block will be # returned. sig { returns(T.nilable(T::Boolean)) } - def include_all_blocks - end + attr_reader :include_all_blocks - sig { params(_: T::Boolean).returns(T::Boolean) } - def include_all_blocks=(_) - end + sig { params(include_all_blocks: T::Boolean).void } + attr_writer :include_all_blocks # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -51,7 +37,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index 6321b595..7654b29d 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -5,60 +5,25 @@ module Orb module Customers class CreditListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def balance - end - - sig { params(_: Float).returns(Float) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(Float)) } - def maximum_initial_balance - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_initial_balance=(_) - end + attr_accessor :maximum_initial_balance sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end + attr_accessor :per_unit_cost_basis - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) } + attr_accessor :status sig do params( @@ -68,7 +33,7 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListResponse::Status::OrSymbol ) .returns(T.attached_class) end @@ -85,20 +50,29 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) + PENDING_PAYMENT = + T.let(:pending_payment, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) - ACTIVE = :active - PENDING_PAYMENT = :pending_payment + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index 5e9b2ed7..e1356dde 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -11,146 +11,100 @@ module Orb # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end - - sig { returns(Symbol) } - def entry_type - end + attr_accessor :amount - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol) } + attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Optional metadata that can be specified when adding ledger results via the API. # For example, this can be used to note an increment refers to trial credits, or # for noting corrections as a result of an incident, etc. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # An ISO 8601 format date that denotes when this credit balance should become # available for use. sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date # An ISO 8601 format date that identifies the origination credit block to expire sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) } - def invoice_settings - end + attr_reader :invoice_settings sig do params( - _: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings) + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) - end - def invoice_settings=(_) + .void end + attr_writer :invoice_settings # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # A future date (specified in YYYY-MM-DD format) used for expiration change, # denoting when credits transferred (as part of a partial block expiration) should # expire. sig { returns(Date) } - def target_expiry_date - end - - sig { params(_: Date).returns(Date) } - def target_expiry_date=(_) - end + attr_accessor :target_expiry_date # The ID of the block to reverse a decrement from. sig { returns(String) } - def block_id - end - - sig { params(_: String).returns(String) } - def block_id=(_) - end + attr_accessor :block_id # Can only be specified when `entry_type=void`. The reason for the void. - sig { returns(T.nilable(Symbol)) } - def void_reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def void_reason=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol) + ) end + attr_accessor :void_reason sig do params( amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::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(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -176,7 +130,7 @@ module Orb .returns( { amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), @@ -186,7 +140,7 @@ module Orb per_unit_cost_basis: T.nilable(String), target_expiry_date: Date, block_id: String, - void_reason: T.nilable(Symbol), + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -194,54 +148,60 @@ module Orb def to_hash end - class EntryType < Orb::Enum - abstract! + module EntryType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + ) + end - AMENDMENT = :amendment + AMENDMENT = + T.let( + :amendment, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol] + ) + end + def values + end + end end class InvoiceSettings < Orb::BaseModel # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify @@ -275,12 +235,35 @@ module Orb end # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum - abstract! + module VoidReason + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + REFUND = + T.let( + :refund, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + ) - REFUND = :refund + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol] + ) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 14fb1284..f8960471 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -6,8 +6,8 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryByExternalIDResponse < Orb::Union - abstract! + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union Variants = type_template(:out) do @@ -26,146 +26,99 @@ module Orb class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -202,7 +155,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -215,28 +168,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -260,20 +198,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -284,182 +212,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -502,7 +399,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -518,28 +415,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -563,20 +445,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -587,166 +459,145 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -785,7 +636,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -799,28 +650,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -844,20 +680,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -868,158 +694,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1056,7 +866,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1069,28 +879,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1114,20 +909,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1138,168 +923,144 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1340,7 +1101,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1355,28 +1116,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1400,20 +1146,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1424,182 +1160,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1642,7 +1347,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1658,28 +1363,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1703,20 +1393,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1727,158 +1407,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1915,7 +1579,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1928,28 +1592,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1973,20 +1622,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1997,13 +1636,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry] + ) + end + def variants end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi index 524a19f7..adc36d69 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -11,144 +11,90 @@ module Orb # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol) } + attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Optional metadata that can be specified when adding ledger results via the API. # For example, this can be used to note an increment refers to trial credits, or # for noting corrections as a result of an incident, etc. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # An ISO 8601 format date that denotes when this credit balance should become # available for use. sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date # An ISO 8601 format date that identifies the origination credit block to expire sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) - .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) - end - def invoice_settings=(_) + params( + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoice_settings # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # A future date (specified in YYYY-MM-DD format) used for expiration change, # denoting when credits transferred (as part of a partial block expiration) should # expire. sig { returns(Date) } - def target_expiry_date - end - - sig { params(_: Date).returns(Date) } - def target_expiry_date=(_) - end + attr_accessor :target_expiry_date # The ID of the block to reverse a decrement from. sig { returns(String) } - def block_id - end - - sig { params(_: String).returns(String) } - def block_id=(_) - end + attr_accessor :block_id # Can only be specified when `entry_type=void`. The reason for the void. - sig { returns(T.nilable(Symbol)) } - def void_reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def void_reason=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol)) } + attr_accessor :void_reason sig do params( amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::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(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -174,7 +120,7 @@ module Orb .returns( { amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), @@ -184,7 +130,7 @@ module Orb per_unit_cost_basis: T.nilable(String), target_expiry_date: Date, block_id: String, - void_reason: T.nilable(Symbol), + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -192,54 +138,50 @@ module Orb def to_hash end - class EntryType < Orb::Enum - abstract! + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + AMENDMENT = + T.let(:amendment, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) - AMENDMENT = :amendment + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol]) + end + def values + end + end end class InvoiceSettings < Orb::BaseModel # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify @@ -273,12 +215,25 @@ module Orb end # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - REFUND = :refund + module VoidReason + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol) } + + REFUND = + T.let(:refund, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi index d06f339c..a55657da 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -6,8 +6,8 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryResponse < Orb::Union - abstract! + module LedgerCreateEntryResponse + extend Orb::Union Variants = type_template(:out) do @@ -26,130 +26,91 @@ module Orb class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -186,7 +147,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -199,28 +160,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -244,20 +190,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -268,166 +204,143 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -470,7 +383,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -486,28 +399,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -531,20 +429,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -555,160 +443,141 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) - end - def customer=(_) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -747,7 +616,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -761,28 +630,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -806,20 +660,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -830,158 +674,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1018,7 +846,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1031,28 +859,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1076,20 +889,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1100,158 +903,140 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1292,7 +1077,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1307,28 +1092,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1352,20 +1122,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1376,168 +1136,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end + + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) - end - def credit_block=(_) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1580,7 +1311,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1596,28 +1327,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1641,20 +1357,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1665,142 +1371,134 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1837,7 +1535,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1850,28 +1548,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1895,20 +1578,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1919,13 +1592,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry] + ) + end + def variants end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi index ac07623f..40188710 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi @@ -9,88 +9,41 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end + attr_accessor :cursor - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol)) } + attr_accessor :entry_status - sig { returns(T.nilable(Symbol)) } - def entry_status - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_status=(_) - end - - sig { returns(T.nilable(Symbol)) } - def entry_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_type=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol)) } + attr_accessor :entry_type # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params( @@ -100,11 +53,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -133,8 +86,8 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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 @@ -144,27 +97,74 @@ module Orb def to_hash end - class EntryStatus < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - COMMITTED = :committed - PENDING = :pending - end - - class EntryType < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement - EXPIRATION_CHANGE = :expiration_change - CREDIT_BLOCK_EXPIRY = :credit_block_expiry - VOID = :void - VOID_INITIATED = :void_initiated - AMENDMENT = :amendment + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol + ) + PENDING = + T.let(:pending, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol] + ) + end + def values + end + end + end + + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) } + + INCREMENT = + T.let(:increment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + DECREMENT = + T.let(:decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + EXPIRATION_CHANGE = + T.let( + :expiration_change, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + CREDIT_BLOCK_EXPIRY = + T.let( + :credit_block_expiry, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + VOID = + T.let(:void, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + VOID_INITIATED = + T.let( + :void_initiated, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + AMENDMENT = + T.let(:amendment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index 1fcb0231..a8fbf69b 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -6,8 +6,8 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListByExternalIDResponse < Orb::Union - abstract! + module LedgerListByExternalIDResponse + extend Orb::Union Variants = type_template(:out) do @@ -26,138 +26,95 @@ module Orb class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -194,7 +151,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -207,28 +164,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -252,20 +194,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -276,174 +208,147 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -486,7 +391,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -502,28 +407,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -547,20 +437,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -571,166 +451,145 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -769,7 +628,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -783,28 +642,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -828,20 +672,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -852,158 +686,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1040,7 +858,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1053,28 +871,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1098,20 +901,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1122,158 +915,140 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1314,7 +1089,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1329,28 +1104,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1374,20 +1134,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1398,182 +1148,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1616,7 +1335,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1632,28 +1351,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1677,20 +1381,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1701,150 +1395,138 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1881,7 +1563,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1894,28 +1576,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1939,20 +1606,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1963,13 +1620,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry] + ) + end + def variants end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi index 23324eb6..a5a6b95d 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -9,88 +9,41 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end + attr_accessor :cursor - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol)) } + attr_accessor :entry_status - sig { returns(T.nilable(Symbol)) } - def entry_status - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_status=(_) - end - - sig { returns(T.nilable(Symbol)) } - def entry_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_type=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol)) } + attr_accessor :entry_type # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params( @@ -100,11 +53,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -133,8 +86,8 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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 @@ -144,27 +97,49 @@ module Orb def to_hash end - class EntryStatus < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - COMMITTED = :committed - PENDING = :pending - end - - class EntryType < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - INCREMENT = :increment - DECREMENT = :decrement - EXPIRATION_CHANGE = :expiration_change - CREDIT_BLOCK_EXPIRY = :credit_block_expiry - VOID = :void - VOID_INITIATED = :void_initiated - AMENDMENT = :amendment + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) } + + COMMITTED = + T.let(:committed, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) + PENDING = T.let(:pending, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol]) } + def values + end + end + end + + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) } + + INCREMENT = T.let(:increment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + EXPIRATION_CHANGE = + T.let(:expiration_change, Orb::Models::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) + VOID_INITIATED = + T.let(:void_initiated, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + AMENDMENT = T.let(:amendment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi index 56e15125..988c9c2f 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -6,8 +6,8 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListResponse < Orb::Union - abstract! + module LedgerListResponse + extend Orb::Union Variants = type_template(:out) do @@ -26,130 +26,91 @@ module Orb class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -186,7 +147,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -199,28 +160,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -244,20 +190,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -268,166 +204,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -470,7 +379,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -486,28 +395,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -531,20 +425,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -555,150 +439,133 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end + + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -737,7 +604,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -751,28 +618,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -796,20 +648,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -820,142 +662,134 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -992,7 +826,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1005,28 +839,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1050,20 +869,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1074,158 +883,130 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, Orb::Util::AnyHash) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol) } + attr_accessor :entry_status sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) - end - - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, + customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, Orb::Util::AnyHash), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1266,7 +1047,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1281,28 +1062,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1326,20 +1092,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1350,166 +1106,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) - end - - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1552,7 +1281,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1568,28 +1297,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1613,20 +1327,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1637,142 +1341,130 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1809,7 +1501,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1822,28 +1514,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1867,20 +1544,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -1891,13 +1558,51 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry] + ) + end + def variants end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi index 29532e24..82d177c6 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi @@ -10,94 +10,63 @@ module Orb # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The date from which the top-up is active. If unspecified, the top-up is active # immediately. sig { returns(T.nilable(Time)) } - def active_from - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def active_from=(_) - end + attr_accessor :active_from # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol) + ) end + attr_accessor :expires_after_unit sig do params( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -125,7 +94,7 @@ module Orb threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), request_options: Orb::RequestOptions } ) @@ -137,42 +106,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -203,13 +155,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index 208a3499..7f839ffc 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi @@ -6,92 +6,69 @@ module Orb module Credits class TopUpCreateByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + ) end + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + invoice_settings: T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + Orb::Util::AnyHash + ), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +95,9 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) } ) end @@ -129,42 +108,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +157,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi index 697e019b..66f6704a 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi @@ -10,94 +10,59 @@ module Orb # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The date from which the top-up is active. If unspecified, the top-up is active # immediately. sig { returns(T.nilable(Time)) } - def active_from - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def active_from=(_) - end + attr_accessor :active_from # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol)) } + attr_accessor :expires_after_unit sig do params( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -125,7 +90,7 @@ module Orb threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), request_options: Orb::RequestOptions } ) @@ -137,42 +102,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -203,13 +151,25 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) } + + DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) + MONTH = T.let(:month, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi index 7e9ad45a..299420c7 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi @@ -6,92 +6,57 @@ module Orb module Credits class TopUpCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol)) } + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +83,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +94,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +143,26 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index e9d3992b..f7affdcf 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi @@ -9,17 +9,12 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def external_customer_id - end - - sig { params(_: String).returns(String) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( external_customer_id: String, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi index aef729a6..f30cf531 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi @@ -9,21 +9,10 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def customer_id - end - - sig { params(_: String).returns(String) } - def customer_id=(_) - end + attr_accessor :customer_id sig do - params( - customer_id: String, - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ) + params(customer_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(customer_id:, request_options: {}) diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi index cf7e12fc..cc63968f 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi @@ -11,27 +11,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi index 3d552fb5..3e04b616 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi @@ -6,92 +6,61 @@ module Orb module Credits class TopUpListByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) + ) end + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +87,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +98,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +147,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi index 45c13da8..7320609d 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi @@ -11,27 +11,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi index f0dc7e3a..d9077ae2 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi @@ -6,92 +6,57 @@ module Orb module Credits class TopUpListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol)) } + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +83,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +94,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +143,25 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index aaf63f54..0af6e5c2 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -4,62 +4,32 @@ module Orb module Models class DimensionalPriceGroup < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The billable metric associated with this dimensional price group. All prices # associated with this dimensional price group will be computed using this # billable metric. sig { returns(String) } - def billable_metric_id - end - - sig { params(_: String).returns(String) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # The dimensions that this dimensional price group is defined over sig { returns(T::Array[String]) } - def dimensions - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimensions=(_) - end + attr_accessor :dimensions # An alias for the dimensional price group sig { returns(T.nilable(String)) } - def external_dimensional_price_group_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_dimensional_price_group_id=(_) - end + attr_accessor :external_dimensional_price_group_id # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The name of the dimensional price group sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # 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 diff --git a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi index 6b8d00d6..a89baeec 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -7,51 +7,23 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def billable_metric_id - end - - sig { params(_: String).returns(String) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # The set of keys (in order) used to disambiguate prices in the group. sig { returns(T::Array[String]) } - def dimensions - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimensions=(_) - end + attr_accessor :dimensions sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(String)) } - def external_dimensional_price_group_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_dimensional_price_group_id=(_) - end + attr_accessor :external_dimensional_price_group_id # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( @@ -60,7 +32,7 @@ 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, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi index 1316c4a0..5c7e0c63 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi index 6b641d32..833f2fdb 100644 --- a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/dimensional_price_groups.rbi b/rbi/lib/orb/models/dimensional_price_groups.rbi index 6afd9756..acd4a5a8 100644 --- a/rbi/lib/orb/models/dimensional_price_groups.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups.rbi @@ -4,28 +4,18 @@ module Orb module Models class DimensionalPriceGroupsAPI < Orb::BaseModel sig { returns(T::Array[Orb::Models::DimensionalPriceGroup]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::DimensionalPriceGroup]) - .returns(T::Array[Orb::Models::DimensionalPriceGroup]) - end - def data=(_) - end + attr_accessor :data sig { returns(Orb::Models::PaginationMetadata) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: Orb::Models::PaginationMetadata).returns(Orb::Models::PaginationMetadata) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)).void } + attr_writer :pagination_metadata sig do params( - data: T::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata + data: T::Array[T.any(Orb::Models::DimensionalPriceGroup, Orb::Util::AnyHash)], + pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi index ea1ad495..f46117db 100644 --- a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index 73949835..1e28e806 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -2,8 +2,8 @@ module Orb module Models - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union Variants = type_template(:out) do @@ -16,6 +16,17 @@ module Orb ) } end + + class << self + sig do + override + .returns( + [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index bd86aabd..ea368b38 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -5,38 +5,15 @@ module Orb class EvaluatePriceGroup < Orb::BaseModel # The price's output for the group sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The values for the group in the order specified by `grouping_keys` sig { returns(T::Array[T.any(String, Float, T::Boolean)]) } - def grouping_values - end - - sig do - params( - _: T::Array[T.any( - String, - Float, - T::Boolean - )] - ).returns(T::Array[T.any(String, Float, T::Boolean)]) - end - def grouping_values=(_) - end + attr_accessor :grouping_values # The price's usage quantity for the group sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig do params(amount: String, grouping_values: T::Array[T.any(String, Float, T::Boolean)], quantity: Float) @@ -56,10 +33,16 @@ module Orb def to_hash end - class GroupingValue < Orb::Union - abstract! + module GroupingValue + extend Orb::Union Variants = type_template(:out) { {fixed: T.any(String, Float, T::Boolean)} } + + class << self + sig { override.returns([String, Float, T::Boolean]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/event_deprecate_params.rbi b/rbi/lib/orb/models/event_deprecate_params.rbi index 225cdf89..8232fc49 100644 --- a/rbi/lib/orb/models/event_deprecate_params.rbi +++ b/rbi/lib/orb/models/event_deprecate_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/event_deprecate_response.rbi b/rbi/lib/orb/models/event_deprecate_response.rbi index 3ef5841a..42ce4acc 100644 --- a/rbi/lib/orb/models/event_deprecate_response.rbi +++ b/rbi/lib/orb/models/event_deprecate_response.rbi @@ -5,12 +5,7 @@ module Orb class EventDeprecateResponse < Orb::BaseModel # event_id of the deprecated event, if successfully updated sig { returns(String) } - def deprecated - end - - sig { params(_: String).returns(String) } - def deprecated=(_) - end + attr_accessor :deprecated sig { params(deprecated: String).returns(T.attached_class) } def self.new(deprecated:) diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index 3afd650f..7a198694 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -7,41 +7,26 @@ module Orb include Orb::RequestParameters sig { returns(T::Array[Orb::Models::EventIngestParams::Event]) } - def events - end - - sig do - params(_: T::Array[Orb::Models::EventIngestParams::Event]) - .returns(T::Array[Orb::Models::EventIngestParams::Event]) - end - def events=(_) - end + attr_accessor :events # If this ingestion request is part of a backfill, this parameter ties the # ingested events to the backfill sig { returns(T.nilable(String)) } - def backfill_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def backfill_id=(_) - end + attr_accessor :backfill_id # Flag to enable additional debug information in the endpoint response sig { returns(T.nilable(T::Boolean)) } - def debug - end + attr_reader :debug - sig { params(_: T::Boolean).returns(T::Boolean) } - def debug=(_) - end + sig { params(debug: T::Boolean).void } + attr_writer :debug sig do params( - events: T::Array[Orb::Models::EventIngestParams::Event], + events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Util::AnyHash)], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -65,63 +50,33 @@ module Orb class Event < Orb::BaseModel # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # 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. sig { returns(String) } - def idempotency_key - end - - sig { params(_: String).returns(String) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( diff --git a/rbi/lib/orb/models/event_ingest_response.rbi b/rbi/lib/orb/models/event_ingest_response.rbi index 5049aac3..57b71033 100644 --- a/rbi/lib/orb/models/event_ingest_response.rbi +++ b/rbi/lib/orb/models/event_ingest_response.rbi @@ -6,33 +6,20 @@ module Orb # 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]) } - def validation_failed - end - - sig do - params(_: T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) - .returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) - end - def validation_failed=(_) - end + attr_accessor :validation_failed # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. sig { returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) } - def debug - end + attr_reader :debug - sig do - params(_: T.nilable(Orb::Models::EventIngestResponse::Debug)) - .returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) - end - def debug=(_) - end + sig { params(debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Util::AnyHash))).void } + attr_writer :debug sig do params( - validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: T.nilable(Orb::Models::EventIngestResponse::Debug) + validation_failed: T::Array[T.any(Orb::Models::EventIngestResponse::ValidationFailed, Orb::Util::AnyHash)], + debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -54,22 +41,12 @@ module Orb class ValidationFailed < Orb::BaseModel # The passed idempotency_key corresponding to the validation_errors sig { returns(String) } - def idempotency_key - end - - sig { params(_: String).returns(String) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # An array of strings corresponding to validation failures for this # idempotency_key. sig { returns(T::Array[String]) } - def validation_errors - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def validation_errors=(_) - end + attr_accessor :validation_errors sig { params(idempotency_key: String, validation_errors: T::Array[String]).returns(T.attached_class) } def self.new(idempotency_key:, validation_errors:) @@ -82,20 +59,10 @@ module Orb class Debug < Orb::BaseModel sig { returns(T::Array[String]) } - def duplicate - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def duplicate=(_) - end + attr_accessor :duplicate sig { returns(T::Array[String]) } - def ingested - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def ingested=(_) - end + attr_accessor :ingested # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index bd29a28c..3fa9c976 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -11,39 +11,24 @@ module Orb # events that have not been amended. Values in this array will be treated case # sensitively. sig { returns(T::Array[String]) } - def event_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def event_ids=(_) - end + attr_accessor :event_ids # The end of the timeframe, exclusive, in which to search events. If not # specified, the current time is used. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The start of the timeframe, inclusive, in which to search events. If not # specified, the one week ago is used. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params( event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index 516c65df..f0d495df 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -4,17 +4,12 @@ module Orb module Models class EventSearchResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::EventSearchResponse::Data]) - .returns(T::Array[Orb::Models::EventSearchResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::EventSearchResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::EventSearchResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -27,70 +22,35 @@ module Orb # Exactly one event with a given idempotency key will be ingested, which allows # for safe request retries. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # A boolean indicating whether the event is currently deprecated. sig { returns(T::Boolean) } - def deprecated - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def deprecated=(_) - end + attr_accessor :deprecated # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The [Event](/core-concepts#event) resource represents a usage event that has # been created for a customer. Events are the core of Orb's usage-based billing diff --git a/rbi/lib/orb/models/event_update_params.rbi b/rbi/lib/orb/models/event_update_params.rbi index c700c8c7..8a3cf0d7 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -8,52 +8,27 @@ module Orb # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( @@ -62,7 +37,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/event_update_response.rbi b/rbi/lib/orb/models/event_update_response.rbi index 89cf4f8d..fe28651e 100644 --- a/rbi/lib/orb/models/event_update_response.rbi +++ b/rbi/lib/orb/models/event_update_response.rbi @@ -5,12 +5,7 @@ module Orb class EventUpdateResponse < Orb::BaseModel # event_id of the amended event, if successfully ingested sig { returns(String) } - def amended - end - - sig { params(_: String).returns(String) } - def amended=(_) - end + attr_accessor :amended sig { params(amended: String).returns(T.attached_class) } def self.new(amended:) diff --git a/rbi/lib/orb/models/events/backfill_close_params.rbi b/rbi/lib/orb/models/events/backfill_close_params.rbi index 1468d57f..a868ef8a 100644 --- a/rbi/lib/orb/models/events/backfill_close_params.rbi +++ b/rbi/lib/orb/models/events/backfill_close_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index 5a083259..d56429f8 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillCloseResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCloseResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCloseResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_create_params.rbi b/rbi/lib/orb/models/events/backfill_create_params.rbi index 2a82de2a..6d154e94 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -11,75 +11,43 @@ module Orb # default, Orb allows backfills up to 10 days in duration at a time. Reach out to # discuss extending this limit and your use case. sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The (inclusive) start 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. sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # The time at which no more events will be accepted for this backfill. The # backfill will automatically begin reflecting throughout Orb at the close time. # If not specified, it will default to 1 day after the creation of the backfill. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time # The Orb-generated ID of the customer to which this backfill is scoped. Omitting # this field will scope the backfill to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # The external customer ID of the customer to which this backfill is scoped. # Omitting this field will scope the backfill to all customers. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # If true, replaces all existing events in the timeframe with the newly ingested # events. If false, adds the newly ingested events to the existing events. sig { returns(T.nilable(T::Boolean)) } - def replace_existing_events - end + attr_reader :replace_existing_events - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + sig { params(replace_existing_events: T::Boolean).void } + attr_writer :replace_existing_events sig do params( @@ -90,7 +58,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index aebfa1c7..9f5da1b8 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCreateResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,24 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCreateResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_fetch_params.rbi b/rbi/lib/orb/models/events/backfill_fetch_params.rbi index 3948368c..dece14fe 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index 2d0dee78..5960fcfa 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillFetchResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillFetchResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillFetchResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_list_params.rbi b/rbi/lib/orb/models/events/backfill_list_params.rbi index 61b8d98c..18b02d34 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -10,27 +10,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index e0fc1712..3e416d11 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillListResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillListResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_revert_params.rbi b/rbi/lib/orb/models/events/backfill_revert_params.rbi index bd219af5..4ef8e816 100644 --- a/rbi/lib/orb/models/events/backfill_revert_params.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index bce55589..5cfc9759 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillRevertResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillRevertResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,24 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillRevertResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index 159796a4..4eaf92bb 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -5,17 +5,12 @@ module Orb module Events class EventVolumes < Orb::BaseModel sig { returns(T::Array[Orb::Models::Events::EventVolumes::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::Events::EventVolumes::Data]) - .returns(T::Array[Orb::Models::Events::EventVolumes::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::Events::EventVolumes::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::Events::EventVolumes::Data]).returns(T.attached_class) } def self.new(data:) end @@ -26,28 +21,13 @@ module Orb class Data < Orb::BaseModel # The number of events ingested with a timestamp between the timeframe sig { returns(Integer) } - def count - end - - sig { params(_: Integer).returns(Integer) } - def count=(_) - end + attr_accessor :count sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # An EventVolume contains the event volume ingested in an hourly window. The # timestamp used for the aggregation is the `timestamp` datetime field on events. diff --git a/rbi/lib/orb/models/events/volume_list_params.rbi b/rbi/lib/orb/models/events/volume_list_params.rbi index a6c4cbb4..c6694c64 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -12,43 +12,29 @@ module Orb # hour-aligned, the response includes the event volume count for the hour the time # falls in. sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # The end of the timeframe, exclusive, in which to return event volume. If not # specified, the current time is used. All datetime values are converted to UTC # time.If the specified time isn't hour-aligned, the response includes the event # volumecount for the hour the time falls in. sig { returns(T.nilable(Time)) } - def timeframe_end - end + attr_reader :timeframe_end - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + sig { params(timeframe_end: Time).void } + attr_writer :timeframe_end sig do params( @@ -56,7 +42,7 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index 2ea0162f..f566e247 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -4,87 +4,45 @@ module Orb module Models class Invoice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # This is the final amount required to be charged to the customer and reflects the # application of the customer balance to the `total` of the invoice. sig { returns(String) } - def amount_due - end - - sig { params(_: String).returns(String) } - def amount_due=(_) - end + attr_accessor :amount_due sig { returns(Orb::Models::Invoice::AutoCollection) } - def auto_collection - end + attr_reader :auto_collection - sig { params(_: Orb::Models::Invoice::AutoCollection).returns(Orb::Models::Invoice::AutoCollection) } - def auto_collection=(_) - end + sig { params(auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Util::AnyHash)).void } + attr_writer :auto_collection sig { returns(T.nilable(Orb::Models::Invoice::BillingAddress)) } - def billing_address - end + attr_reader :billing_address - sig do - params(_: T.nilable(Orb::Models::Invoice::BillingAddress)) - .returns(T.nilable(Orb::Models::Invoice::BillingAddress)) - end - def billing_address=(_) - end + sig { params(billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Util::AnyHash))).void } + attr_writer :billing_address # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # A list of credit notes associated with the invoice sig { returns(T::Array[Orb::Models::Invoice::CreditNote]) } - def credit_notes - end - - sig { params(_: T::Array[Orb::Models::Invoice::CreditNote]).returns(T::Array[Orb::Models::Invoice::CreditNote]) } - def credit_notes=(_) - end + attr_accessor :credit_notes # An ISO 4217 currency string or `credits` sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Invoice::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Invoice::Customer).returns(Orb::Models::Invoice::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Invoice::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer sig { returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) } - def customer_balance_transactions - end - - sig do - params(_: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) - .returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) - end - def customer_balance_transactions=(_) - end + attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -192,327 +150,163 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) } - def customer_tax_id - end + attr_reader :customer_tax_id - sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerTaxID)) - .returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) - end - def customer_tax_id=(_) - end + sig { params(customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Util::AnyHash))).void } + attr_writer :customer_tax_id # This field is deprecated in favor of `discounts`. If a `discounts` list is # provided, the first discount in the list will be returned. If the list is empty, # `None` will be returned. sig { returns(T.anything) } - def discount - end - - sig { params(_: T.anything).returns(T.anything) } - def discount=(_) - end + attr_accessor :discount sig do returns( T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end - def discounts - end - - sig do - params( - _: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] - ) - .returns( - T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] - ) - end - def discounts=(_) - end + attr_accessor :discounts # When the invoice payment is due. The due date is null if the invoice is not yet # finalized. sig { returns(T.nilable(Time)) } - def due_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def due_date=(_) - end + attr_accessor :due_date # If the invoice has a status of `draft`, this will be the time that the invoice # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is # true, the invoice will automatically begin issuing at this time. sig { returns(T.nilable(Time)) } - def eligible_to_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def eligible_to_issue_at=(_) - end + attr_accessor :eligible_to_issue_at # A URL for the customer-facing invoice portal. This URL expires 30 days after the # invoice's due date, or 60 days after being re-generated through the UI. sig { returns(T.nilable(String)) } - def hosted_invoice_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def hosted_invoice_url=(_) - end + attr_accessor :hosted_invoice_url # The scheduled date of the invoice sig { returns(Time) } - def invoice_date - end - - sig { params(_: Time).returns(Time) } - def invoice_date=(_) - end + attr_accessor :invoice_date # Automatically generated invoice number to help track and reconcile invoices. # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per # account or customer. sig { returns(String) } - def invoice_number - end - - sig { params(_: String).returns(String) } - def invoice_number=(_) - end + attr_accessor :invoice_number # The link to download the PDF representation of the `Invoice`. sig { returns(T.nilable(String)) } - def invoice_pdf - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_pdf=(_) - end - - sig { returns(Symbol) } - def invoice_source - end + attr_accessor :invoice_pdf - sig { params(_: Symbol).returns(Symbol) } - def invoice_source=(_) - end + sig { returns(Orb::Models::Invoice::InvoiceSource::TaggedSymbol) } + attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue # (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issue_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issue_failed_at=(_) - end + attr_accessor :issue_failed_at # If the invoice has been issued, this will be the time it transitioned to # `issued` (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issued_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issued_at=(_) - end + attr_accessor :issued_at # The breakdown of prices in this invoice. sig { returns(T::Array[Orb::Models::Invoice::LineItem]) } - def line_items - end - - sig { params(_: T::Array[Orb::Models::Invoice::LineItem]).returns(T::Array[Orb::Models::Invoice::LineItem]) } - def line_items=(_) - end + attr_accessor :line_items sig { returns(T.nilable(Orb::Models::Invoice::Maximum)) } - def maximum - end + attr_reader :maximum - sig { params(_: T.nilable(Orb::Models::Invoice::Maximum)).returns(T.nilable(Orb::Models::Invoice::Maximum)) } - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Invoice::Minimum)) } - def minimum - end + attr_reader :minimum - sig { params(_: T.nilable(Orb::Models::Invoice::Minimum)).returns(T.nilable(Orb::Models::Invoice::Minimum)) } - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # If the invoice has a status of `paid`, this gives a timestamp when the invoice # was paid. sig { returns(T.nilable(Time)) } - def paid_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def paid_at=(_) - end + attr_accessor :paid_at # A list of payment attempts associated with the invoice sig { returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) } - def payment_attempts - end - - sig do - params(_: T::Array[Orb::Models::Invoice::PaymentAttempt]) - .returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) - end - def payment_attempts=(_) - end + attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of # the most recent attempt. sig { returns(T.nilable(Time)) } - def payment_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_failed_at=(_) - end + attr_accessor :payment_failed_at # If payment was attempted on this invoice, this will be the start time of the # most recent attempt. This field is especially useful for delayed-notification # payment mechanisms (like bank transfers), where payment can take 3 days or more. sig { returns(T.nilable(Time)) } - def payment_started_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_started_at=(_) - end + attr_accessor :payment_started_at # If the invoice is in draft, this timestamp will reflect when the invoice is # scheduled to be issued. sig { returns(T.nilable(Time)) } - def scheduled_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def scheduled_issue_at=(_) - end + attr_accessor :scheduled_issue_at sig { returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) } - def shipping_address - end - - sig do - params(_: T.nilable(Orb::Models::Invoice::ShippingAddress)) - .returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) - end - def shipping_address=(_) - end + attr_reader :shipping_address - sig { returns(Symbol) } - def status - end + sig { params(shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Util::AnyHash))).void } + attr_writer :shipping_address - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Invoice::Status::TaggedSymbol) } + attr_accessor :status sig { returns(T.nilable(Orb::Models::Invoice::Subscription)) } - def subscription - end + attr_reader :subscription - sig do - params(_: T.nilable(Orb::Models::Invoice::Subscription)) - .returns(T.nilable(Orb::Models::Invoice::Subscription)) - end - def subscription=(_) - end + sig { params(subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Util::AnyHash))).void } + attr_writer :subscription # The total before any discounts and minimums are applied. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # If the invoice failed to sync, this will be the last time an external invoicing # provider sync was attempted. This field will always be `null` for invoices using # Orb Invoicing. sig { returns(T.nilable(Time)) } - def sync_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def sync_failed_at=(_) - end + attr_accessor :sync_failed_at # The total after any minimums and discounts have been applied. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # If the invoice has a status of `void`, this gives a timestamp when the invoice # was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # This is true if the invoice will be automatically issued in the future, and # false otherwise. sig { returns(T::Boolean) } - def will_auto_issue - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + attr_accessor :will_auto_issue # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, # representing the request for payment for a single subscription. This includes a @@ -523,40 +317,47 @@ module Orb params( id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), + auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Util::AnyHash), + billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Util::AnyHash)), created_at: Time, - credit_notes: T::Array[Orb::Models::Invoice::CreditNote], + credit_notes: T::Array[T.any(Orb::Models::Invoice::CreditNote, Orb::Util::AnyHash)], 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), + customer: T.any(Orb::Models::Invoice::Customer, Orb::Util::AnyHash), + customer_balance_transactions: T::Array[T.any(Orb::Models::Invoice::CustomerBalanceTransaction, Orb::Util::AnyHash)], + customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Util::AnyHash)), discount: T.anything, - discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], + discounts: T::Array[ + T.any( + Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + ) + ], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), invoice_date: Time, invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + invoice_source: Orb::Models::Invoice::InvoiceSource::OrSymbol, 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), + line_items: T::Array[T.any(Orb::Models::Invoice::LineItem, Orb::Util::AnyHash)], + maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Invoice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: T::Array[T.any(Orb::Models::Invoice::PaymentAttempt, Orb::Util::AnyHash)], payment_failed_at: T.nilable(Time), payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::Invoice::Subscription), + shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Util::AnyHash)), + status: Orb::Models::Invoice::Status::OrSymbol, + subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Util::AnyHash)), subtotal: String, sync_failed_at: T.nilable(Time), total: String, @@ -632,7 +433,7 @@ module Orb invoice_date: Time, invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + 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], @@ -648,7 +449,7 @@ module Orb payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Symbol, + status: Orb::Models::Invoice::Status::TaggedSymbol, subscription: T.nilable(Orb::Models::Invoice::Subscription), subtotal: String, sync_failed_at: T.nilable(Time), @@ -664,32 +465,17 @@ module Orb class AutoCollection < Orb::BaseModel # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } - def enabled - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def enabled=(_) - end + attr_accessor :enabled # If the invoice is scheduled for auto-collection, this field will reflect when # the next attempt will occur. If dunning has been exhausted, or auto-collection # is not enabled for this invoice, this field will be `null`. sig { returns(T.nilable(Time)) } - def next_attempt_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def next_attempt_at=(_) - end + attr_accessor :next_attempt_at # Number of auto-collection payment attempts. sig { returns(T.nilable(Integer)) } - def num_attempts - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def num_attempts=(_) - end + attr_accessor :num_attempts # If Orb has ever attempted payment auto-collection for this invoice, this field # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, @@ -698,12 +484,7 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). sig { returns(T.nilable(Time)) } - def previously_attempted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def previously_attempted_at=(_) - end + attr_accessor :previously_attempted_at sig do params( @@ -734,52 +515,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -814,63 +565,28 @@ module Orb class CreditNote < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo sig { returns(String) } - def reason - end - - sig { params(_: String).returns(String) } - def reason=(_) - end + attr_accessor :reason sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig { returns(String) } - def type - end - - sig { params(_: String).returns(String) } - def type=(_) - end + attr_accessor :type # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at sig do params( @@ -907,20 +623,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -934,110 +640,70 @@ module Orb class CustomerBalanceTransaction < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end + attr_accessor :id - sig { params(_: String).returns(String) } - def id=(_) - end - - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) - .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) - .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end + attr_accessor :starting_balance - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), + invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::OrSymbol ) .returns(T.attached_class) end @@ -1060,7 +726,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), @@ -1068,38 +734,50 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + PRORATED_REFUND = + T.let(:prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + REVERT_PRORATED_REFUND = + T.let(:revert_prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + RETURN_FROM_VOIDING = + T.let(:return_from_voiding, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + CREDIT_NOTE_APPLIED = + T.let(:credit_note_applied, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + CREDIT_NOTE_VOIDED = + T.let(:credit_note_voided, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1113,12 +791,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1129,40 +802,33 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = T.let(:increment, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol]) } + def values + end + end end end class CustomerTaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end + sig { returns(Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -1269,207 +935,234 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } - def self.new(country:, type:, value:) - end - - sig { override.returns({country: Symbol, type: Symbol, value: String}) } - def to_hash + sig do + params( + country: Orb::Models::Invoice::CustomerTaxID::Country::OrSymbol, + type: Orb::Models::Invoice::CustomerTaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) end - - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + def self.new(country:, type:, value:) end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + sig do + override + .returns( + { + country: Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol, + type: Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end + def to_hash + end + + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Country) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol]) } + def values + end + end + end + + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) } + + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol]) } + def values + end + end end end - class InvoiceSource < Orb::Enum - abstract! + module InvoiceSource + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::InvoiceSource) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :subscription - PARTIAL = :partial - ONE_OFF = :one_off + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::InvoiceSource::TaggedSymbol]) } + def values + end + end end class LineItem < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -1487,54 +1180,16 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -1548,122 +1203,51 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Maximum)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Minimum)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1711,99 +1295,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -1818,62 +1318,20 @@ module Orb ] ) end - def sub_line_items - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - ) - ] - ) - end - def sub_line_items=(_) - end + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # 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]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -1882,6 +1340,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, @@ -1893,6 +1352,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1901,15 +1361,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), + maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), + minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1944,12 +1405,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::Invoice::LineItem::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -2064,8 +1526,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -2082,67 +1544,32 @@ module Orb class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -2187,67 +1614,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2292,67 +1684,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2397,76 +1754,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2514,67 +1831,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2616,27 +1898,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment] + ) + end + def variants + end + end end class Maximum < Orb::BaseModel # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2654,21 +1937,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2682,8 +1955,8 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union Variants = type_template(:out) do @@ -2699,64 +1972,48 @@ module Orb class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - .returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, Orb::Util::AnyHash) + ), + matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, Orb::Util::AnyHash), name: String, quantity: Float, type: Symbol @@ -2784,21 +2041,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2812,12 +2059,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -2832,66 +2074,50 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, Orb::Util::AnyHash) + ), name: String, quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, Orb::Util::AnyHash), type: Symbol ) .returns(T.attached_class) @@ -2917,21 +2143,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2944,28 +2160,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2986,52 +2187,36 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, Orb::Util::AnyHash) + ), name: String, quantity: Float, type: Symbol @@ -3058,21 +2243,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -3083,35 +2258,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -3138,21 +2309,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3169,21 +2330,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3199,64 +2350,34 @@ module Orb class PaymentAttempt < Orb::BaseModel # The ID of the payment attempt. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the payment attempt. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The time at which the payment attempt was created. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The payment provider that attempted to collect the payment. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol)) } + attr_accessor :payment_provider # The ID of the payment attempt in the payment provider. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id # Whether the payment attempt succeeded. sig { returns(T::Boolean) } - def succeeded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def succeeded=(_) - end + attr_accessor :succeeded sig do params( id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean ) @@ -3272,7 +2393,7 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean } @@ -3282,63 +2403,41 @@ module Orb end # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) } - STRIPE = :stripe + STRIPE = T.let(:stripe, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) } + def values + end + end end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -3371,26 +2470,28 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :issued - PAID = :paid - SYNCED = :synced - VOID = :void - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) } + def values + end + end end class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index 31f69e02..d55bde04 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -9,55 +9,27 @@ module Orb # An ISO 4217 currency string. Must be the same as the customer's currency if it # is set. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Optional invoice date to set. Must be in the past, if not set, `invoice_date` is # set to the current time in the customer's timezone. sig { returns(Time) } - def invoice_date - end - - sig { params(_: Time).returns(Time) } - def invoice_date=(_) - end + attr_accessor :invoice_date sig { returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::InvoiceCreateParams::LineItem]) - .returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of '0' here represents that the # invoice is due on issue, whereas a value of 30 represents that the customer has # 30 days to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The id of the `Customer` to create this invoice for. One of `customer_id` and # `external_customer_id` are required. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An optional discount to attach to the invoice. sig do @@ -72,87 +44,42 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # An optional memo to attach to the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # When true, this invoice will automatically be issued upon creation. When false, # the resulting invoice will require manual review to issue. Defaulted to false. sig { returns(T.nilable(T::Boolean)) } - def will_auto_issue - end + attr_reader :will_auto_issue - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + sig { params(will_auto_issue: T::Boolean).void } + attr_writer :will_auto_issue sig do params( currency: String, invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Util::AnyHash)], net_terms: Integer, customer_id: T.nilable(String), discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -162,7 +89,7 @@ module Orb memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -212,76 +139,41 @@ module Orb class LineItem < Orb::BaseModel # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } - def end_date - end - - sig { params(_: Date).returns(Date) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def item_id - end + attr_accessor :item_id - sig { params(_: String).returns(String) } - def item_id=(_) - end - - sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol) } + attr_accessor :model_type # The name of the line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The number of units on the line item sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # A date string to specify the line item's start date in the customer's timezone. sig { returns(Date) } - def start_date - end - - sig { params(_: Date).returns(Date) } - def start_date=(_) - end + attr_accessor :start_date sig { returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig do - params(_: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) - .returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) - end - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config sig do params( end_date: Date, item_id: String, - model_type: Symbol, + model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, name: String, quantity: Float, start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -294,7 +186,7 @@ module Orb { end_date: Date, item_id: String, - model_type: Symbol, + model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, name: String, quantity: Float, start_date: Date, @@ -305,23 +197,26 @@ module Orb def to_hash end - class ModelType < Orb::Enum - abstract! + module ModelType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + UNIT = T.let(:unit, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) - UNIT = :unit + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) diff --git a/rbi/lib/orb/models/invoice_fetch_params.rbi b/rbi/lib/orb/models/invoice_fetch_params.rbi index 0dd5cafe..1fb78b09 100644 --- a/rbi/lib/orb/models/invoice_fetch_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index b8ac54fb..4c7acb11 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -7,18 +7,10 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def subscription_id - end - - sig { params(_: String).returns(String) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do - params( - subscription_id: String, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + params(subscription_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(subscription_id:, request_options: {}) diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index cd9da565..848071dc 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -4,96 +4,55 @@ module Orb module Models class InvoiceFetchUpcomingResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # This is the final amount required to be charged to the customer and reflects the # application of the customer balance to the `total` of the invoice. sig { returns(String) } - def amount_due - end - - sig { params(_: String).returns(String) } - def amount_due=(_) - end + attr_accessor :amount_due sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) } - def auto_collection - end + attr_reader :auto_collection sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) - end - def auto_collection=(_) + params( + auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Util::AnyHash) + ) + .void end + attr_writer :auto_collection sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # A list of credit notes associated with the invoice sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) } - def credit_notes - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) - end - def credit_notes=(_) - end + attr_accessor :credit_notes # An ISO 4217 currency string or `credits` sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) } - def customer - end + attr_reader :customer - sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::Customer) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) - end - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) } - def customer_balance_transactions - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) - end - def customer_balance_transactions=(_) - end + attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -201,374 +160,229 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) } - def customer_tax_id - end + attr_reader :customer_tax_id sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) - end - def customer_tax_id=(_) + params( + customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Util::AnyHash)) + ) + .void end + attr_writer :customer_tax_id # This field is deprecated in favor of `discounts`. If a `discounts` list is # provided, the first discount in the list will be returned. If the list is empty, # `None` will be returned. sig { returns(T.anything) } - def discount - end - - sig { params(_: T.anything).returns(T.anything) } - def discount=(_) - end + attr_accessor :discount sig do returns( T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end - def discounts - end - - sig do - params( - _: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] - ) - .returns( - T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] - ) - end - def discounts=(_) - end + attr_accessor :discounts # When the invoice payment is due. The due date is null if the invoice is not yet # finalized. sig { returns(T.nilable(Time)) } - def due_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def due_date=(_) - end + attr_accessor :due_date # If the invoice has a status of `draft`, this will be the time that the invoice # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is # true, the invoice will automatically begin issuing at this time. sig { returns(T.nilable(Time)) } - def eligible_to_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def eligible_to_issue_at=(_) - end + attr_accessor :eligible_to_issue_at # A URL for the customer-facing invoice portal. This URL expires 30 days after the # invoice's due date, or 60 days after being re-generated through the UI. sig { returns(T.nilable(String)) } - def hosted_invoice_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def hosted_invoice_url=(_) - end + attr_accessor :hosted_invoice_url # Automatically generated invoice number to help track and reconcile invoices. # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per # account or customer. sig { returns(String) } - def invoice_number - end - - sig { params(_: String).returns(String) } - def invoice_number=(_) - end + attr_accessor :invoice_number # The link to download the PDF representation of the `Invoice`. sig { returns(T.nilable(String)) } - def invoice_pdf - end + attr_accessor :invoice_pdf - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_pdf=(_) - end - - sig { returns(Symbol) } - def invoice_source - end - - sig { params(_: Symbol).returns(Symbol) } - def invoice_source=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) } + attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue # (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issue_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issue_failed_at=(_) - end + attr_accessor :issue_failed_at # If the invoice has been issued, this will be the time it transitioned to # `issued` (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issued_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issued_at=(_) - end + attr_accessor :issued_at # The breakdown of prices in this invoice. sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # If the invoice has a status of `paid`, this gives a timestamp when the invoice # was paid. sig { returns(T.nilable(Time)) } - def paid_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def paid_at=(_) - end + attr_accessor :paid_at # A list of payment attempts associated with the invoice sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) } - def payment_attempts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) - end - def payment_attempts=(_) - end + attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of # the most recent attempt. sig { returns(T.nilable(Time)) } - def payment_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_failed_at=(_) - end + attr_accessor :payment_failed_at # If payment was attempted on this invoice, this will be the start time of the # most recent attempt. This field is especially useful for delayed-notification # payment mechanisms (like bank transfers), where payment can take 3 days or more. sig { returns(T.nilable(Time)) } - def payment_started_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_started_at=(_) - end + attr_accessor :payment_started_at # If the invoice is in draft, this timestamp will reflect when the invoice is # scheduled to be issued. sig { returns(T.nilable(Time)) } - def scheduled_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def scheduled_issue_at=(_) - end + attr_accessor :scheduled_issue_at sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) - end - def shipping_address=(_) - end - - sig { returns(Symbol) } - def status + params( + shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) } - def subscription - end + attr_reader :subscription sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) - end - def subscription=(_) + params( + subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Util::AnyHash)) + ) + .void end + attr_writer :subscription # The total before any discounts and minimums are applied. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # If the invoice failed to sync, this will be the last time an external invoicing # provider sync was attempted. This field will always be `null` for invoices using # Orb Invoicing. sig { returns(T.nilable(Time)) } - def sync_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def sync_failed_at=(_) - end + attr_accessor :sync_failed_at # The scheduled date of the invoice sig { returns(Time) } - def target_date - end - - sig { params(_: Time).returns(Time) } - def target_date=(_) - end + attr_accessor :target_date # The total after any minimums and discounts have been applied. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # If the invoice has a status of `void`, this gives a timestamp when the invoice # was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # This is true if the invoice will be automatically issued in the future, and # false otherwise. sig { returns(T::Boolean) } - def will_auto_issue - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + attr_accessor :will_auto_issue sig do params( id: String, amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), + auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Util::AnyHash), + billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Util::AnyHash)), created_at: Time, - credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + credit_notes: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CreditNote, Orb::Util::AnyHash)], 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), + customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Util::AnyHash), + customer_balance_transactions: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction, Orb::Util::AnyHash)], + customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Util::AnyHash)), discount: T.anything, - discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], + discounts: T::Array[ + T.any( + Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + ) + ], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::OrSymbol, 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), + line_items: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem, Orb::Util::AnyHash)], + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_attempts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt, Orb::Util::AnyHash)], payment_failed_at: T.nilable(Time), payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), + shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Util::AnyHash)), + status: Orb::Models::InvoiceFetchUpcomingResponse::Status::OrSymbol, + subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Util::AnyHash)), subtotal: String, sync_failed_at: T.nilable(Time), target_date: Time, @@ -644,7 +458,7 @@ module Orb hosted_invoice_url: T.nilable(String), invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + 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], @@ -660,7 +474,7 @@ module Orb payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Symbol, + status: Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol, subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), subtotal: String, sync_failed_at: T.nilable(Time), @@ -677,32 +491,17 @@ module Orb class AutoCollection < Orb::BaseModel # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } - def enabled - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def enabled=(_) - end + attr_accessor :enabled # If the invoice is scheduled for auto-collection, this field will reflect when # the next attempt will occur. If dunning has been exhausted, or auto-collection # is not enabled for this invoice, this field will be `null`. sig { returns(T.nilable(Time)) } - def next_attempt_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def next_attempt_at=(_) - end + attr_accessor :next_attempt_at # Number of auto-collection payment attempts. sig { returns(T.nilable(Integer)) } - def num_attempts - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def num_attempts=(_) - end + attr_accessor :num_attempts # If Orb has ever attempted payment auto-collection for this invoice, this field # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, @@ -711,12 +510,7 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). sig { returns(T.nilable(Time)) } - def previously_attempted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def previously_attempted_at=(_) - end + attr_accessor :previously_attempted_at sig do params( @@ -747,52 +541,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -827,63 +591,28 @@ module Orb class CreditNote < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo sig { returns(String) } - def reason - end - - sig { params(_: String).returns(String) } - def reason=(_) - end + attr_accessor :reason sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig { returns(String) } - def type - end - - sig { params(_: String).returns(String) } - def type=(_) - end + attr_accessor :type # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at sig do params( @@ -920,20 +649,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + 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:) @@ -947,110 +666,84 @@ module Orb class CustomerBalanceTransaction < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end + attr_accessor :id - sig { params(_: String).returns(String) } - def id=(_) - end - - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable( + T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end - - sig { returns(Symbol) } - def type - end + attr_accessor :starting_balance - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), + credit_note: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, + Orb::Util::AnyHash + ) + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), + invoice: T.nilable( + T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash) + ), starting_balance: String, - type: Symbol + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol ) .returns(T.attached_class) end @@ -1073,7 +766,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), @@ -1081,38 +774,83 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! + module Action + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let( + :applied_to_invoice, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + MANUAL_ADJUSTMENT = + T.let( + :manual_adjustment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + PRORATED_REFUND = + T.let( + :prorated_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let( + :return_from_voiding, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_APPLIED = + T.let( + :credit_note_applied, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_VOIDED = + T.let( + :credit_note_voided, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + OVERPAYMENT_REFUND = + T.let( + :overpayment_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + EXTERNAL_PAYMENT = + T.let( + :external_payment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol] + ) + end + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1126,12 +864,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1142,40 +875,47 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + INCREMENT = + T.let( + :increment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ) - INCREMENT = :increment - DECREMENT = :decrement + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol] + ) + end + def values + end + end end end class CustomerTaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -1282,207 +1022,247 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA - end - - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Country + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) } + + 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) + + class << self + sig do + override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol]) + end + def values + end + end + end + + module Type + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, 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) + CA_PST_BC = + 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) + 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) + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol]) } + def values + end + end end end - class InvoiceSource < Orb::Enum - abstract! + module InvoiceSource + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) } - SUBSCRIPTION = :subscription - PARTIAL = :partial - ONE_OFF = :one_off + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol]) } + def values + end + end end class LineItem < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -1500,54 +1280,16 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -1561,122 +1303,61 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1724,99 +1405,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -1831,62 +1428,20 @@ module Orb ] ) end - def sub_line_items - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - ) - ] - ) - end - def sub_line_items=(_) - end + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # 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]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -1895,6 +1450,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, @@ -1906,6 +1462,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1914,15 +1471,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1957,12 +1515,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -2077,8 +1636,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -2095,67 +1654,32 @@ module Orb class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -2200,67 +1724,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2305,67 +1794,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. - sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + sig { returns(Float) } + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2410,76 +1864,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2527,67 +1941,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2629,27 +2008,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment] + ) + end + def variants + end + end end class Maximum < Orb::BaseModel # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2667,21 +2047,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2695,8 +2065,8 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union Variants = type_template(:out) do @@ -2712,74 +2082,64 @@ module Orb class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig + matrix_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), + matrix_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ), name: String, quantity: Float, type: Symbol @@ -2807,21 +2167,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2835,12 +2185,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -2855,74 +2200,66 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ), type: Symbol ) .returns(T.attached_class) @@ -2948,21 +2285,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2975,28 +2302,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -3017,60 +2329,46 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, type: Symbol @@ -3097,21 +2395,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -3122,35 +2410,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -3177,21 +2461,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3208,21 +2482,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3238,64 +2502,38 @@ module Orb class PaymentAttempt < Orb::BaseModel # The ID of the payment attempt. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the payment attempt. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The time at which the payment attempt was created. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The payment provider that attempted to collect the payment. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + ) end + attr_accessor :payment_provider # The ID of the payment attempt in the payment provider. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id # Whether the payment attempt succeeded. sig { returns(T::Boolean) } - def succeeded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def succeeded=(_) - end + attr_accessor :succeeded sig do params( id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean ) @@ -3311,7 +2549,7 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean } @@ -3321,63 +2559,48 @@ module Orb end # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) } - STRIPE = :stripe + STRIPE = + T.let(:stripe, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol] + ) + end + def values + end + end end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -3410,26 +2633,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) } - ISSUED = :issued - PAID = :paid - SYNCED = :synced - VOID = :void - DRAFT = :draft + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol]) } + def values + end + end end class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index a5e5956c..7cd93c57 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -12,18 +12,13 @@ module Orb # provider, a successful response from this endpoint guarantees the invoice is # present in the provider. sig { returns(T.nilable(T::Boolean)) } - def synchronous - end + attr_reader :synchronous - sig { params(_: T::Boolean).returns(T::Boolean) } - def synchronous=(_) - end + sig { params(synchronous: T::Boolean).void } + attr_writer :synchronous sig do - params( - synchronous: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + params(synchronous: T::Boolean, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(synchronous: nil, request_options: {}) diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index 88c5796e..1581dab5 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -2,11 +2,20 @@ module Orb module Models - class InvoiceLevelDiscount < Orb::Union - abstract! + module InvoiceLevelDiscount + extend Orb::Union Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)} } + + class << self + sig do + override + .returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount]) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/invoice_line_item_create_params.rbi b/rbi/lib/orb/models/invoice_line_item_create_params.rbi index 3863d653..f3c9bd60 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -8,58 +8,28 @@ module Orb # The total amount in the invoice's currency to add to the line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } - def end_date - end - - sig { params(_: Date).returns(Date) } - def end_date=(_) - end + attr_accessor :end_date # The id of the Invoice to add this line item. sig { returns(String) } - def invoice_id - end - - sig { params(_: String).returns(String) } - def invoice_id=(_) - end + attr_accessor :invoice_id # The item name associated with this line item. If an item with the same name # exists in Orb, that item will be associated with the line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The number of units on the line item sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # A date string to specify the line item's start date in the customer's timezone. sig { returns(Date) } - def start_date - end - - sig { params(_: Date).returns(Date) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -69,7 +39,7 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice_line_item_create_response.rbi b/rbi/lib/orb/models/invoice_line_item_create_response.rbi index 8e624847..adf94f49 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -5,22 +5,12 @@ module Orb class InvoiceLineItemCreateResponse < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -38,54 +28,16 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -99,122 +51,57 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -262,99 +149,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -369,62 +172,20 @@ module Orb ] ) end - def sub_line_items - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - ) - ] - ) - end - def sub_line_items=(_) - end + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # 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]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) - .returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -433,6 +194,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, @@ -444,6 +206,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -452,15 +215,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), + maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -495,12 +259,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::InvoiceLineItemCreateResponse::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -615,8 +380,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -633,67 +398,32 @@ module Orb class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -738,67 +468,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -843,67 +538,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -948,76 +608,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1065,67 +685,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1167,27 +752,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment] + ) + end + def variants + end + end end class Maximum < Orb::BaseModel # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -1205,21 +791,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -1233,8 +809,8 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union Variants = type_template(:out) do @@ -1250,64 +826,60 @@ module Orb class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) - .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), + matrix_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ), name: String, quantity: Float, type: Symbol @@ -1335,21 +907,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1363,12 +925,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -1383,66 +940,62 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ), type: Symbol ) .returns(T.attached_class) @@ -1468,21 +1021,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1495,28 +1038,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1537,52 +1065,42 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, type: Symbol @@ -1609,21 +1127,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1634,35 +1142,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index aad5ae63..13408036 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -7,163 +7,71 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(String)) } - def amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(String)) } - def amount_gt - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_gt=(_) - end + attr_accessor :amount_gt sig { returns(T.nilable(String)) } - def amount_lt - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_lt=(_) - end + attr_accessor :amount_lt # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor sig { returns(T.nilable(String)) } - def customer_id - end + attr_accessor :customer_id - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end - - sig { returns(T.nilable(Symbol)) } - def date_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def date_type=(_) - end + sig { returns(T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol)) } + attr_accessor :date_type sig { returns(T.nilable(Date)) } - def due_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date=(_) - end + attr_accessor :due_date # Filters invoices by their due dates within a specific time range in the past. # Specify the range as a number followed by 'd' (days) or 'm' (months). For # example, '7d' filters invoices due in the last 7 days, and '2m' filters those # due in the last 2 months. sig { returns(T.nilable(String)) } - def due_date_window - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def due_date_window=(_) - end + attr_accessor :due_date_window sig { returns(T.nilable(Date)) } - def due_date_gt - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date_gt=(_) - end + attr_accessor :due_date_gt sig { returns(T.nilable(Date)) } - def due_date_lt - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date_lt=(_) - end + attr_accessor :due_date_lt sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { returns(T.nilable(Time)) } - def invoice_date_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_gt=(_) - end + attr_accessor :invoice_date_gt sig { returns(T.nilable(Time)) } - def invoice_date_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_gte=(_) - end + attr_accessor :invoice_date_gte sig { returns(T.nilable(Time)) } - def invoice_date_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_lt=(_) - end + attr_accessor :invoice_date_lt sig { returns(T.nilable(Time)) } - def invoice_date_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_lte=(_) - end + attr_accessor :invoice_date_lte sig { returns(T.nilable(T::Boolean)) } - def is_recurring - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def is_recurring=(_) - end + attr_accessor :is_recurring # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end - - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + attr_reader :limit - sig { returns(T.nilable(T::Array[Symbol])) } - def status - end + sig { params(limit: Integer).void } + attr_writer :limit - sig { params(_: T.nilable(T::Array[Symbol])).returns(T.nilable(T::Array[Symbol])) } - def status=(_) - end + sig { returns(T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol])) } + attr_accessor :status sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( @@ -172,7 +80,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + 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), @@ -184,9 +92,9 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -223,7 +131,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + 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), @@ -235,7 +143,7 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), request_options: Orb::RequestOptions } @@ -244,25 +152,39 @@ module Orb def to_hash end - class DateType < Orb::Enum - abstract! + module DateType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::DateType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DUE_DATE = T.let(:due_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) + INVOICE_DATE = T.let(:invoice_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) - DUE_DATE = :due_date - INVOICE_DATE = :invoice_date + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::DateType::TaggedSymbol]) } + def values + end + end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::InvoiceListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :draft - ISSUED = :issued - PAID = :paid - SYNCED = :synced - VOID = :void + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/invoice_mark_paid_params.rbi b/rbi/lib/orb/models/invoice_mark_paid_params.rbi index 1624f20c..3dfc5d5f 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -8,37 +8,22 @@ module Orb # A date string to specify the date of the payment. sig { returns(Date) } - def payment_received_date - end - - sig { params(_: Date).returns(Date) } - def payment_received_date=(_) - end + attr_accessor :payment_received_date # An optional external ID to associate with the payment. sig { returns(T.nilable(String)) } - def external_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_id=(_) - end + attr_accessor :external_id # An optional note to associate with the payment. sig { returns(T.nilable(String)) } - def notes - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def notes=(_) - end + attr_accessor :notes sig do params( payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice_pay_params.rbi b/rbi/lib/orb/models/invoice_pay_params.rbi index eab4a145..8a805ec3 100644 --- a/rbi/lib/orb/models/invoice_pay_params.rbi +++ b/rbi/lib/orb/models/invoice_pay_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index 247b5f42..0ab6f912 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice_void_params.rbi b/rbi/lib/orb/models/invoice_void_params.rbi index 0fd67d33..783773e0 100644 --- a/rbi/lib/orb/models/invoice_void_params.rbi +++ b/rbi/lib/orb/models/invoice_void_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index 1c715741..856e1b90 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -4,39 +4,16 @@ module Orb module Models class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T::Array[Orb::Models::Item::ExternalConnection]) } - def external_connections - end - - sig do - params(_: T::Array[Orb::Models::Item::ExternalConnection]) - .returns(T::Array[Orb::Models::Item::ExternalConnection]) - end - def external_connections=(_) - end + attr_accessor :external_connections sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # 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 @@ -45,7 +22,7 @@ module Orb params( id: String, created_at: Time, - external_connections: T::Array[Orb::Models::Item::ExternalConnection], + external_connections: T::Array[T.any(Orb::Models::Item::ExternalConnection, Orb::Util::AnyHash)], name: String ) .returns(T.attached_class) @@ -68,42 +45,57 @@ module Orb end class ExternalConnection < Orb::BaseModel - sig { returns(Symbol) } - def external_connection_name - end - - sig { params(_: Symbol).returns(Symbol) } - def external_connection_name=(_) - end + sig { returns(Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + attr_accessor :external_connection_name sig { returns(String) } - def external_entity_id - end + attr_accessor :external_entity_id - sig { params(_: String).returns(String) } - def external_entity_id=(_) + sig do + params( + external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + ) + .returns(T.attached_class) end - - sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } def self.new(external_connection_name:, external_entity_id:) end - sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + sig do + override + .returns( + { + external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol, + external_entity_id: String + } + ) + end def to_hash end - class ExternalConnectionName < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - STRIPE = :stripe - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - NETSUITE = :netsuite - TAXJAR = :taxjar - AVALARA = :avalara - ANROK = :anrok + module ExternalConnectionName + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + + STRIPE = T.let(:stripe, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + QUICKBOOKS = + T.let(:quickbooks, Orb::Models::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) + + class << self + sig { override.returns(T::Array[Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/item_create_params.rbi b/rbi/lib/orb/models/item_create_params.rbi index 62300cd4..0a615783 100644 --- a/rbi/lib/orb/models/item_create_params.rbi +++ b/rbi/lib/orb/models/item_create_params.rbi @@ -8,15 +8,10 @@ module Orb # The name of the item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do - params(name: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + params(name: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(name:, request_options: {}) diff --git a/rbi/lib/orb/models/item_fetch_params.rbi b/rbi/lib/orb/models/item_fetch_params.rbi index c3eb8e63..2358a672 100644 --- a/rbi/lib/orb/models/item_fetch_params.rbi +++ b/rbi/lib/orb/models/item_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index 0d2c03cc..1b0776a4 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index c8f705d9..a3d4d8bd 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -7,29 +7,16 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) } - def external_connections - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) - .returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) - end - def external_connections=(_) - end + attr_accessor :external_connections sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params( - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), + external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Util::AnyHash)]), name: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -50,42 +37,71 @@ module Orb end class ExternalConnection < Orb::BaseModel - sig { returns(Symbol) } - def external_connection_name - end - - sig { params(_: Symbol).returns(Symbol) } - def external_connection_name=(_) - end + sig { returns(Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol) } + attr_accessor :external_connection_name sig { returns(String) } - def external_entity_id - end + attr_accessor :external_entity_id - sig { params(_: String).returns(String) } - def external_entity_id=(_) + sig do + params( + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + ) + .returns(T.attached_class) end - - sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } def self.new(external_connection_name:, external_entity_id:) end - sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + sig do + override + .returns( + { + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + } + ) + end def to_hash end - class ExternalConnectionName < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - STRIPE = :stripe - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - NETSUITE = :netsuite - TAXJAR = :taxjar - AVALARA = :avalara - ANROK = :anrok + module ExternalConnectionName + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + + STRIPE = + T.let(:stripe, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + QUICKBOOKS = + T.let( + :quickbooks, + Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + BILL_COM = + T.let( + :"bill.com", + Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + NETSUITE = + T.let(:netsuite, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + TAXJAR = + T.let(:taxjar, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + AVALARA = + T.let(:avalara, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + ANROK = + T.let(:anrok, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index 895582a7..78ea6196 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -8,53 +8,25 @@ module Orb # A description of the metric. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The id of the item sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The name of the metric. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # A sql string defining the metric. sig { returns(String) } - def sql - end - - sig { params(_: String).returns(String) } - def sql=(_) - end + attr_accessor :sql # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( @@ -63,7 +35,7 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/metric_fetch_params.rbi b/rbi/lib/orb/models/metric_fetch_params.rbi index be0db24c..bdfce19b 100644 --- a/rbi/lib/orb/models/metric_fetch_params.rbi +++ b/rbi/lib/orb/models/metric_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index 41d32688..8ef13166 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index aa84573b..9ddd2d2a 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/pagination_metadata.rbi b/rbi/lib/orb/models/pagination_metadata.rbi index ae361feb..aa16df1c 100644 --- a/rbi/lib/orb/models/pagination_metadata.rbi +++ b/rbi/lib/orb/models/pagination_metadata.rbi @@ -4,20 +4,10 @@ module Orb module Models class PaginationMetadata < Orb::BaseModel sig { returns(T::Boolean) } - def has_more - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def has_more=(_) - end + attr_accessor :has_more sig { returns(T.nilable(String)) } - def next_cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def next_cursor=(_) - end + 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:) diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index e9686a3e..b9eca6c1 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -6,43 +6,23 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::PercentageDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, percentage_discount: Float, reason: T.nilable(String) ) @@ -56,7 +36,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, percentage_discount: Float, reason: T.nilable(String) } @@ -65,12 +45,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PercentageDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = T.let(:percentage, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage + class << self + sig { override.returns(T::Array[Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 998adeba..a0f62555 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -4,12 +4,7 @@ module Orb module Models class Plan < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # Adjustments for this plan. If the plan has phases, this includes adjustments # across all phases of the plan. @@ -26,89 +21,34 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments sig { returns(T.nilable(Orb::Models::Plan::BasePlan)) } - def base_plan - end + attr_reader :base_plan - sig { params(_: T.nilable(Orb::Models::Plan::BasePlan)).returns(T.nilable(Orb::Models::Plan::BasePlan)) } - def base_plan=(_) - end + sig { params(base_plan: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Util::AnyHash))).void } + attr_writer :base_plan # The parent plan id if the given plan was created by overriding one or more of # the parent's prices sig { returns(T.nilable(String)) } - def base_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def base_plan_id=(_) - end + attr_accessor :base_plan_id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # An ISO 4217 currency string or custom pricing unit (`credits`) for this plan's # prices. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The default memo text on the invoices corresponding to subscriptions on this # plan. Note that each subscription may configure its own memo. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(String) } - def description - end - - sig { params(_: String).returns(String) } - def description=(_) - end + attr_accessor :description sig do returns( @@ -122,106 +62,46 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # 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. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An ISO 4217 currency string for which this plan is billed in. Matches `currency` # unless `currency` is a custom pricing unit. sig { returns(String) } - def invoicing_currency - end - - sig { params(_: String).returns(String) } - def invoicing_currency=(_) - end + attr_accessor :invoicing_currency sig { returns(T.nilable(Orb::Models::Plan::Maximum)) } - def maximum - end + attr_reader :maximum - sig { params(_: T.nilable(Orb::Models::Plan::Maximum)).returns(T.nilable(Orb::Models::Plan::Maximum)) } - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Plan::Minimum)) } - def minimum - end + attr_reader :minimum - sig { params(_: T.nilable(Orb::Models::Plan::Minimum)).returns(T.nilable(Orb::Models::Plan::Minimum)) } - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Determines the difference between the invoice issue date and the due date. A # value of "0" here signifies that invoices are due on issue, whereas a value of @@ -229,23 +109,10 @@ module Orb # Note that individual subscriptions or invoices may set a different net terms # configuration. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) } - def plan_phases - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) - .returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) - end - def plan_phases=(_) - end + attr_accessor :plan_phases # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. @@ -285,113 +152,25 @@ module Orb ] ) end - def prices - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ] - ) - end - def prices=(_) - end + attr_accessor :prices sig { returns(Orb::Models::Plan::Product) } - def product - end - - sig { params(_: Orb::Models::Plan::Product).returns(Orb::Models::Plan::Product) } - def product=(_) - end + attr_reader :product - sig { returns(Symbol) } - def status - end + sig { params(product: T.any(Orb::Models::Plan::Product, Orb::Util::AnyHash)).void } + attr_writer :product - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Plan::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::Plan::TrialConfig) } - def trial_config - end + attr_reader :trial_config - sig { params(_: Orb::Models::Plan::TrialConfig).returns(Orb::Models::Plan::TrialConfig) } - def trial_config=(_) - end + sig { params(trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Util::AnyHash)).void } + attr_writer :trial_config sig { returns(Integer) } - def version - end - - sig { params(_: Integer).returns(Integer) } - def version=(_) - end + attr_accessor :version # 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 @@ -403,13 +182,14 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment ) ], - base_plan: T.nilable(Orb::Models::Plan::BasePlan), + base_plan: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Util::AnyHash)), base_plan_id: T.nilable(String), created_at: Time, currency: String, @@ -418,6 +198,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -425,17 +206,18 @@ module Orb ), external_plan_id: T.nilable(String), invoicing_currency: String, - maximum: T.nilable(Orb::Models::Plan::Maximum), + maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Plan::Minimum), + minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), + plan_phases: T.nilable(T::Array[T.any(Orb::Models::Plan::PlanPhase, Orb::Util::AnyHash)]), prices: T::Array[ T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -465,9 +247,9 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ) ], - product: Orb::Models::Plan::Product, - status: Symbol, - trial_config: Orb::Models::Plan::TrialConfig, + product: T.any(Orb::Models::Plan::Product, Orb::Util::AnyHash), + status: Orb::Models::Plan::Status::OrSymbol, + trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Util::AnyHash), version: Integer ) .returns(T.attached_class) @@ -571,7 +353,7 @@ module Orb ) ], product: Orb::Models::Plan::Product, - status: Symbol, + status: Orb::Models::Plan::Status::TaggedSymbol, trial_config: Orb::Models::Plan::TrialConfig, version: Integer } @@ -580,8 +362,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -598,67 +380,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -703,67 +450,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -808,67 +520,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -913,76 +590,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1030,67 +667,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1132,35 +734,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end class BasePlan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # 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. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) @@ -1186,21 +784,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1217,21 +805,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1246,20 +824,10 @@ module Orb class PlanPhase < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig do returns( @@ -1273,106 +841,40 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # How many terms of length `duration_unit` this phase is active for. If null, this # phase is evergreen and active indefinitely sig { returns(T.nilable(Integer)) } - def duration - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration=(_) - end - - sig { returns(T.nilable(Symbol)) } - def duration_unit - end + attr_accessor :duration - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def duration_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol)) } + attr_accessor :duration_unit sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) - .returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) - .returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Determines the ordering of the phase in a plan's lifecycle. 1 = first phase. sig { returns(Integer) } - def order - end - - sig { params(_: Integer).returns(Integer) } - def order=(_) - end + attr_accessor :order sig do params( @@ -1381,16 +883,17 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount ) ), duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), - maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), + duration_unit: T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::OrSymbol), + maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), + minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, order: Integer @@ -1427,7 +930,7 @@ module Orb ) ), duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), + 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), @@ -1440,37 +943,34 @@ module Orb def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::PlanPhase::DurationUnit) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) } - DAILY = :daily - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol]) } + def values + end + end end class Maximum < Orb::BaseModel # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1487,21 +987,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1517,28 +1007,13 @@ module Orb class Product < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, created_at: Time, name: String).returns(T.attached_class) } def self.new(id:, created_at:, name:) @@ -1549,47 +1024,65 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ARCHIVED = :archived - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::Plan::Status::TaggedSymbol]) } + def values + end + end end class TrialConfig < Orb::BaseModel sig { returns(T.nilable(Integer)) } - def trial_period - end + attr_accessor :trial_period - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_period=(_) - end - - sig { returns(Symbol) } - def trial_period_unit - end + sig { returns(Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } + attr_accessor :trial_period_unit - sig { params(_: Symbol).returns(Symbol) } - def trial_period_unit=(_) + sig do + params( + trial_period: T.nilable(Integer), + trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(trial_period: T.nilable(Integer), trial_period_unit: Symbol).returns(T.attached_class) } def self.new(trial_period:, trial_period_unit:) end - sig { override.returns({trial_period: T.nilable(Integer), trial_period_unit: Symbol}) } + sig do + override + .returns( + { + trial_period: T.nilable(Integer), + trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol + } + ) + end def to_hash end - class TrialPeriodUnit < Orb::Enum - abstract! + module TrialPeriodUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } - DAYS = :days + DAYS = T.let(:days, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 2a8b638b..23f0ac8b 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -9,20 +9,10 @@ module Orb # An ISO 4217 currency string for invoices generated by subscriptions on this # plan. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. @@ -59,127 +49,34 @@ module Orb ] ) end - def prices - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - ) - ] - ) - end - def prices=(_) - end + attr_accessor :prices # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - sig { returns(T.nilable(Symbol)) } - def status - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Status::OrSymbol)) } + attr_reader :status - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { params(status: Orb::Models::PlanCreateParams::Status::OrSymbol).void } + attr_writer :status sig do params( @@ -188,6 +85,7 @@ module Orb prices: T::Array[ T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Util::AnyHash, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, @@ -218,8 +116,8 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Symbol, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + status: Orb::Models::PlanCreateParams::Status::OrSymbol, + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -275,7 +173,7 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Symbol, + status: Orb::Models::PlanCreateParams::Status::OrSymbol, request_options: Orb::RequestOptions } ) @@ -283,8 +181,8 @@ module Orb def to_hash end - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -321,173 +219,130 @@ module Orb class NewPlanUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanUnitPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + unit_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -516,7 +371,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -538,28 +393,35 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -573,255 +435,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) - end - def package_config=(_) + params( + package_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + package_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -850,7 +745,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -872,38 +767,44 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol]) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -917,255 +818,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanMatrixPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + matrix_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, Orb::Util::AnyHash), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1194,7 +1128,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, model_type: Symbol, @@ -1216,55 +1150,57 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) - .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + matrix_values: T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -1289,21 +1225,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1323,255 +1249,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) - end - def tiered_config=(_) + params( + tiered_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanTieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + tiered_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1600,7 +1559,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1622,34 +1581,43 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) - .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -1665,30 +1633,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -1709,212 +1662,238 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) - end - def tiered_bps_config=(_) + params( + tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1923,49 +1902,52 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1994,7 +1976,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2016,36 +1998,51 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( - tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -2064,39 +2061,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -2129,253 +2106,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBpsPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -2405,7 +2417,7 @@ module Orb .returns( { bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2428,21 +2440,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -2454,271 +2456,315 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkBpsPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) + params( + bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -2748,7 +2794,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2772,18 +2818,12 @@ module Orb # 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::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -2799,30 +2839,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -2846,269 +2871,320 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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::NewPlanBulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -3138,7 +3214,7 @@ module Orb .returns( { bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3161,18 +3237,12 @@ module Orb class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) - .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3188,21 +3258,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -3215,163 +3275,218 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3382,70 +3497,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3456,48 +3543,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3505,7 +3584,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3535,7 +3617,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3561,163 +3643,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3726,66 +3894,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3794,49 +3938,52 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::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(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -3865,7 +4012,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3887,163 +4034,227 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol]) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4052,66 +4263,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4122,54 +4309,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4199,7 +4383,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4223,163 +4407,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4388,66 +4647,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4456,49 +4691,52 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -4527,7 +4765,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4549,163 +4787,232 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4716,70 +5023,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4790,48 +5069,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4839,7 +5110,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4869,7 +5143,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4895,163 +5169,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5060,66 +5420,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5130,54 +5466,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5207,7 +5540,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5231,163 +5564,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5396,66 +5804,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5466,54 +5850,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5543,7 +5924,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5567,163 +5948,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5732,66 +6188,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5802,54 +6234,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5879,7 +6308,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -5903,163 +6332,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6070,70 +6574,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6144,48 +6620,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6193,7 +6661,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6223,7 +6694,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -6249,163 +6720,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6416,70 +6973,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6490,48 +7019,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6539,7 +7060,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6569,7 +7093,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -6595,163 +7119,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6762,70 +7372,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6836,48 +7418,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6885,7 +7459,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6915,7 +7492,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -6941,163 +7518,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7106,66 +7769,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7176,54 +7815,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::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(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7254,7 +7890,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7277,163 +7913,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7444,70 +8155,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7518,48 +8201,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7567,7 +8242,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7597,7 +8275,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7623,163 +8301,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7790,70 +8554,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7864,48 +8600,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7913,7 +8641,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7943,7 +8674,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -7969,163 +8700,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8136,70 +8957,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8210,48 +9003,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8259,7 +9044,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8289,7 +9077,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8315,163 +9103,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8482,70 +9360,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8556,48 +9406,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8605,7 +9447,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8635,7 +9480,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8661,163 +9506,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8828,70 +9759,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8902,48 +9805,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::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( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8951,7 +9846,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8981,7 +9879,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9007,110 +9905,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice] + ) + end + def variants + end + end end # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::PlanCreateParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::PlanCreateParams::Status::TaggedSymbol) - ACTIVE = :active - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_fetch_params.rbi b/rbi/lib/orb/models/plan_fetch_params.rbi index f9355eb0..4879303c 100644 --- a/rbi/lib/orb/models/plan_fetch_params.rbi +++ b/rbi/lib/orb/models/plan_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index 235ebcee..d014033e 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -7,64 +7,35 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # The plan status to filter to ('active', 'archived', or 'draft'). - sig { returns(T.nilable(Symbol)) } - def status - end + sig { returns(T.nilable(Orb::Models::PlanListParams::Status::OrSymbol)) } + attr_reader :status - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { params(status: Orb::Models::PlanListParams::Status::OrSymbol).void } + attr_writer :status sig do params( @@ -74,8 +45,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + status: Orb::Models::PlanListParams::Status::OrSymbol, + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -101,7 +72,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, + status: Orb::Models::PlanListParams::Status::OrSymbol, request_options: Orb::RequestOptions } ) @@ -110,14 +81,21 @@ module Orb end # The plan status to filter to ('active', 'archived', or 'draft'). - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PlanListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ARCHIVED = :archived - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::PlanListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index 92488438..6688fc00 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -10,32 +10,19 @@ module Orb # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi index 0e2002c1..3a4c765d 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi index 6423f027..21003036 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi @@ -11,32 +11,19 @@ module Orb # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index 5d07e891..37bb6c34 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -12,8 +12,8 @@ module Orb # # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -53,77 +53,52 @@ module Orb class UnitPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -137,183 +112,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::UnitPrice::Item).returns(Orb::Models::Price::UnitPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::UnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig { params(_: Orb::Models::Price::UnitPrice::UnitConfig).returns(Orb::Models::Price::UnitPrice::UnitConfig) } - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::Price::UnitPrice::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config sig { returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -321,18 +212,18 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::UnitPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_config: Orb::Models::Price::UnitPrice::UnitConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::UnitPrice::PriceType::OrSymbol, + unit_config: T.any(Orb::Models::Price::UnitPrice::UnitConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -372,7 +263,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), @@ -397,7 +288,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol, unit_config: Orb::Models::Price::UnitPrice::UnitConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) } @@ -408,12 +299,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -426,68 +312,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -500,55 +400,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -563,21 +470,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -594,21 +491,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -621,24 +508,26 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -651,20 +540,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -683,77 +562,52 @@ module Orb class PackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::PackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::PackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::PackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -767,186 +621,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::PackagePrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::PackagePrice::Item).returns(Orb::Models::Price::PackagePrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::PackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::Price::PackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config - sig do - params(_: Orb::Models::Price::PackagePrice::PackageConfig) - .returns(Orb::Models::Price::PackagePrice::PackageConfig) - end - def package_config=(_) - end + sig { params(package_config: T.any(Orb::Models::Price::PackagePrice::PackageConfig, Orb::Util::AnyHash)).void } + attr_writer :package_config sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::PackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::PackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::PackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -954,18 +721,18 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::PackagePrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::PackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, + package_config: T.any(Orb::Models::Price::PackagePrice::PackageConfig, Orb::Util::AnyHash), plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::PackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -1005,7 +772,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), @@ -1031,7 +798,7 @@ module Orb name: String, package_config: Orb::Models::Price::PackagePrice::PackageConfig, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) } ) @@ -1041,12 +808,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1059,68 +821,83 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -1133,55 +910,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -1196,21 +983,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1227,21 +1004,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1257,22 +1024,12 @@ module Orb class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -1283,31 +1040,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -1326,77 +1080,52 @@ module Orb class MatrixPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -1410,186 +1139,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::MatrixPrice::Item).returns(Orb::Models::Price::MatrixPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(Orb::Models::Price::MatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config - sig do - params(_: Orb::Models::Price::MatrixPrice::MatrixConfig) - .returns(Orb::Models::Price::MatrixPrice::MatrixConfig) - end - def matrix_config=(_) - end + sig { params(matrix_config: T.any(Orb::Models::Price::MatrixPrice::MatrixConfig, Orb::Util::AnyHash)).void } + attr_writer :matrix_config sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1597,18 +1239,18 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixPrice::Item, - matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, - maximum: T.nilable(Orb::Models::Price::MatrixPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::MatrixPrice::Item, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::Price::MatrixPrice::MatrixConfig, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -1648,7 +1290,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), @@ -1674,7 +1316,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) } ) @@ -1684,12 +1326,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1702,68 +1339,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -1776,55 +1427,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -1838,39 +1499,21 @@ module Orb class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) - .returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -1895,21 +1538,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1930,21 +1563,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1961,21 +1584,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1988,31 +1601,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -2031,77 +1641,52 @@ module Orb class TieredPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -2115,186 +1700,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::TieredPrice::Item).returns(Orb::Models::Price::TieredPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::TieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config - sig do - params(_: Orb::Models::Price::TieredPrice::TieredConfig) - .returns(Orb::Models::Price::TieredPrice::TieredConfig) - end - def tiered_config=(_) - end + sig { params(tiered_config: T.any(Orb::Models::Price::TieredPrice::TieredConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_config sig { returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -2302,18 +1800,18 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::TieredPrice::PriceType::OrSymbol, + tiered_config: T.any(Orb::Models::Price::TieredPrice::TieredConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -2353,7 +1851,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), @@ -2378,7 +1876,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol, tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) } @@ -2389,12 +1887,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -2407,68 +1900,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -2481,55 +1988,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -2544,21 +2061,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -2575,21 +2082,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -2602,29 +2099,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol]) } + def values + end + end end class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) - .returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::TieredPrice::TieredConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -2635,30 +2134,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2678,20 +2162,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -2710,77 +2184,52 @@ module Orb class TieredBpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -2794,186 +2243,102 @@ module Orb ) ) end - def discount - end + attr_accessor :discount + + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end - - sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end - - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end - - sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end - - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredBpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::TieredBpsPrice::Item).returns(Orb::Models::Price::TieredBpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredBpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do - params(_: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) - .returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) - end - def tiered_bps_config=(_) + params(tiered_bps_config: T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash)) + .void end + attr_writer :tiered_bps_config sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredBpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -2981,18 +2346,18 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredBpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::TieredBpsPrice::PriceType::OrSymbol, + tiered_bps_config: T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -3032,7 +2397,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), @@ -3057,7 +2422,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol, tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) } @@ -3068,12 +2433,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -3086,68 +2446,85 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -3160,55 +2537,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -3223,21 +2610,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3254,21 +2631,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3281,31 +2648,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class TieredBpsConfig < Orb::BaseModel # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig { returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) - .returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3318,39 +2686,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3382,20 +2730,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -3414,85 +2752,58 @@ module Orb class BpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BpsPrice::BpsConfig) } - def bps_config - end - - sig { params(_: Orb::Models::Price::BpsPrice::BpsConfig).returns(Orb::Models::Price::BpsPrice::BpsConfig) } - def bps_config=(_) - end + attr_reader :bps_config - sig { returns(Symbol) } - def cadence - end + sig { params(bps_config: T.any(Orb::Models::Price::BpsPrice::BpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bps_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -3506,176 +2817,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BpsPrice::Item).returns(Orb::Models::Price::BpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, - bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::BpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::Price::BpsPrice::BpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -3683,17 +2912,17 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BpsPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BpsPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -3734,7 +2963,7 @@ module Orb billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), @@ -3759,7 +2988,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) } ) @@ -3769,12 +2998,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -3787,57 +3011,64 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3848,35 +3079,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -3889,55 +3117,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -3952,21 +3187,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3983,21 +3208,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -4010,31 +3225,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -4053,88 +3265,58 @@ module Orb class BulkBpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end - - sig do - params(_: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) - .returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) - end + attr_reader :bulk_bps_config - sig { returns(Symbol) } - def cadence - end + sig { params(bulk_bps_config: T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_bps_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -4148,176 +3330,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkBpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BulkBpsPrice::Item).returns(Orb::Models::Price::BulkBpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkBpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BulkBpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -4325,17 +3425,17 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BulkBpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkBpsPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -4376,7 +3476,7 @@ module Orb billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), @@ -4401,7 +3501,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) } ) @@ -4411,12 +3511,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -4429,36 +3524,54 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end @@ -4466,17 +3579,12 @@ module Orb # 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::BulkBpsPrice::BulkBpsConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) - .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -4487,30 +3595,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4533,35 +3626,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -4574,55 +3664,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -4637,21 +3737,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -4668,21 +3758,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -4695,31 +3775,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -4738,85 +3815,58 @@ module Orb class BulkPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BulkPrice::BulkConfig) } - def bulk_config - end - - sig { params(_: Orb::Models::Price::BulkPrice::BulkConfig).returns(Orb::Models::Price::BulkPrice::BulkConfig) } - def bulk_config=(_) - end + attr_reader :bulk_config - sig { returns(Symbol) } - def cadence - end + sig { params(bulk_config: T.any(Orb::Models::Price::BulkPrice::BulkConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -4830,176 +3880,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BulkPrice::Item).returns(Orb::Models::Price::BulkPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::Price::BulkPrice::BulkConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BulkPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -5007,17 +3975,17 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BulkPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -5058,7 +4026,7 @@ module Orb billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), @@ -5083,7 +4051,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) } ) @@ -5093,12 +4061,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -5111,53 +4074,65 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) - .returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::BulkPrice::BulkConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -5168,21 +4143,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -5194,35 +4159,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -5235,55 +4197,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -5298,21 +4267,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -5329,21 +4288,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -5356,31 +4305,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -5399,77 +4345,52 @@ module Orb class ThresholdTotalAmountPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -5483,186 +4404,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::Item) - .returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -5670,18 +4515,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, - maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::OrSymbol, threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -5721,7 +4570,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), @@ -5746,7 +4595,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol, threshold_total_amount_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) } @@ -5757,12 +4606,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -5775,68 +4619,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -5849,55 +4726,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -5912,21 +4814,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -5943,21 +4835,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -5970,31 +4852,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -6013,77 +4893,52 @@ module Orb class TieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -6097,186 +4952,98 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredPackagePrice::Item) - .returns(Orb::Models::Price::TieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -6284,18 +5051,20 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredPackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackagePrice::PriceType::OrSymbol, tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -6335,7 +5104,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), @@ -6360,7 +5129,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol, tiered_package_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) } @@ -6371,12 +5140,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -6389,68 +5153,93 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let(:day, Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -6463,55 +5252,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -6526,21 +5336,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -6557,21 +5357,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -6584,31 +5374,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -6627,77 +5415,52 @@ module Orb class GroupedTieredPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -6711,186 +5474,98 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedTieredPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedTieredPrice::Item) - .returns(Orb::Models::Price::GroupedTieredPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedTieredPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedTieredPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -6899,17 +5574,19 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::GroupedTieredPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedTieredPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -6949,7 +5626,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), @@ -6975,7 +5652,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) } ) @@ -6985,12 +5662,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -7003,68 +5675,93 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let(:day, Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -7077,55 +5774,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -7140,21 +5858,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -7171,21 +5879,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -7198,31 +5896,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -7241,77 +5937,52 @@ module Orb class TieredWithMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -7325,186 +5996,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::Item) - .returns(Orb::Models::Price::TieredWithMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredWithMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredWithMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -7512,18 +6103,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredWithMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithMinimumPrice::PriceType::OrSymbol, tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -7563,7 +6158,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), @@ -7588,7 +6183,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol, tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) } @@ -7599,12 +6194,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -7617,68 +6207,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -7691,55 +6310,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -7754,21 +6398,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -7785,21 +6419,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -7812,31 +6436,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -7855,77 +6477,52 @@ module Orb class TieredPackageWithMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -7939,186 +6536,113 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::Item) - .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end + attr_accessor :tiered_package_with_minimum_config sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -8126,18 +6650,25 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::OrSymbol, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -8177,7 +6708,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), @@ -8202,7 +6733,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) } @@ -8213,12 +6744,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -8231,68 +6757,102 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -8305,55 +6865,82 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -8368,21 +6955,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -8399,21 +6976,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -8426,31 +6993,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -8469,77 +7037,52 @@ module Orb class PackageWithAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -8553,186 +7096,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::Item) - .returns(Orb::Models::Price::PackageWithAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::PackageWithAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::PackageWithAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -8740,18 +7207,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackageWithAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::PackageWithAllocationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::PackageWithAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -8791,7 +7262,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), @@ -8817,7 +7288,7 @@ module Orb name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) } ) @@ -8827,12 +7298,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -8845,68 +7311,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -8919,55 +7418,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - DAY = :day - MONTH = :month - end - end - - class Item < Orb::BaseModel - sig { returns(String) } - def id - end + DAY = + T.let( + :day, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - sig { params(_: String).returns(String) } - def id=(_) + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end + end + class Item < Orb::BaseModel sig { returns(String) } - def name - end + attr_accessor :id - sig { params(_: String).returns(String) } - def name=(_) - end + sig { returns(String) } + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -8982,21 +7506,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -9013,21 +7527,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -9040,31 +7544,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -9083,77 +7587,52 @@ module Orb class UnitWithPercentPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -9167,186 +7646,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitWithPercentPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::Item) - .returns(Orb::Models::Price::UnitWithPercentPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitWithPercentPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitWithPercentPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -9354,18 +7753,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithPercentPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::UnitWithPercentPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithPercentPrice::PriceType::OrSymbol, unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -9405,7 +7808,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), @@ -9430,7 +7833,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol, unit_with_percent_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) } @@ -9441,12 +7844,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -9459,68 +7857,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -9533,55 +7960,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -9596,21 +8044,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -9627,21 +8065,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -9654,31 +8082,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -9697,77 +8123,52 @@ module Orb class MatrixWithAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -9781,189 +8182,118 @@ module Orb ) ) end - def discount - end + attr_accessor :discount + + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) ) ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end - - sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end - - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end - - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end - - sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::Item) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixWithAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) } - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) - end - def matrix_with_allocation_config=(_) + params( + matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_with_allocation_config sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixWithAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -9971,18 +8301,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithAllocationPrice::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, - maximum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MatrixWithAllocationPrice::Item, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixWithAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -10022,7 +8356,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), @@ -10048,7 +8382,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) } ) @@ -10058,12 +8392,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -10076,68 +8405,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -10150,55 +8512,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -10212,51 +8599,31 @@ module Orb class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) } - def matrix_values - end - - sig do - params( - _: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ) - .returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + matrix_values: T::Array[ + T.any( + Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -10282,21 +8649,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -10317,21 +8674,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -10348,21 +8695,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -10375,31 +8712,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -10418,77 +8753,52 @@ module Orb class TieredWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -10502,186 +8812,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::Item) - .returns(Orb::Models::Price::TieredWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -10689,18 +8923,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithProrationPrice::PriceType::OrSymbol, tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -10740,7 +8978,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), @@ -10765,7 +9003,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol, tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) } @@ -10776,12 +9014,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -10794,68 +9027,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -10868,55 +9134,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -10931,21 +9222,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -10962,21 +9243,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -10989,31 +9260,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -11032,77 +9301,52 @@ module Orb class UnitWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -11116,186 +9360,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::Item) - .returns(Orb::Models::Price::UnitWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -11303,18 +9467,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::UnitWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithProrationPrice::PriceType::OrSymbol, unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -11354,7 +9522,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), @@ -11379,7 +9547,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol, unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) } @@ -11390,12 +9558,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -11408,68 +9571,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -11482,55 +9674,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) + sig do + returns( + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { returns(Symbol) } - def duration_unit + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + def self.new(duration:, duration_unit:) end - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -11545,21 +9762,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -11576,21 +9783,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -11603,31 +9800,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -11646,77 +9841,52 @@ module Orb class GroupedAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -11730,186 +9900,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::Item) - .returns(Orb::Models::Price::GroupedAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -11918,17 +10008,21 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_allocation_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedAllocationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -11968,7 +10062,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), @@ -11994,7 +10088,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) } ) @@ -12004,12 +10098,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -12022,68 +10111,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -12096,55 +10214,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -12159,21 +10302,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -12190,21 +10323,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -12217,31 +10340,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -12260,77 +10381,54 @@ module Orb class GroupedWithProratedMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -12344,186 +10442,118 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) - .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -12532,17 +10562,27 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -12582,7 +10622,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), @@ -12608,7 +10648,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) } ) @@ -12618,12 +10658,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -12636,68 +10671,105 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - DAY = :day - MONTH = :month + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -12710,55 +10782,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -12773,21 +10874,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -12804,21 +10895,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -12831,31 +10912,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -12874,77 +10956,52 @@ module Orb class GroupedWithMeteredMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -12958,186 +11015,113 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) - .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -13146,17 +11130,24 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -13196,7 +11187,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), @@ -13222,7 +11213,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) } ) @@ -13232,12 +11223,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -13250,68 +11236,103 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - DAY = :day - MONTH = :month + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -13324,55 +11345,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -13387,21 +11437,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -13418,21 +11458,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -13445,31 +11475,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -13488,77 +11519,52 @@ module Orb class MatrixWithDisplayNamePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -13572,186 +11578,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::Item) - .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -13759,18 +11689,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Item, Orb::Util::AnyHash), matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -13810,7 +11744,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), @@ -13836,7 +11770,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) } ) @@ -13846,12 +11780,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -13864,68 +11793,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -13938,55 +11900,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -14001,21 +11988,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -14032,21 +12009,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -14059,31 +12026,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -14102,85 +12069,55 @@ module Orb class BulkWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -14194,179 +12131,104 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::Item) - .returns(Orb::Models::Price::BulkWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::Price::BulkWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -14374,17 +12236,21 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::BulkWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkWithProrationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -14425,7 +12291,7 @@ module Orb billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), @@ -14450,7 +12316,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) } ) @@ -14460,12 +12326,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -14478,68 +12339,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -14552,55 +12442,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end - - sig { returns(String) } - def name - end + attr_accessor :id - sig { params(_: String).returns(String) } - def name=(_) - end + sig { returns(String) } + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -14615,21 +12530,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -14646,21 +12551,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -14673,31 +12568,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -14716,77 +12609,52 @@ module Orb class GroupedTieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -14800,186 +12668,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::Item) - .returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedTieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedTieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -14988,17 +12780,21 @@ module Orb external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_package_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedTieredPackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedTieredPackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -15038,7 +12834,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), @@ -15064,7 +12860,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) } ) @@ -15074,12 +12870,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -15092,68 +12883,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -15166,55 +12990,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -15229,21 +13078,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -15260,21 +13099,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -15287,31 +13116,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -15330,96 +13157,56 @@ module Orb class MaxGroupTieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end - - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) } - def credit_allocation - end - - sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) - end - - sig { returns(String) } - def currency - end + attr_accessor :created_at - sig { params(_: String).returns(String) } - def currency=(_) - end - - sig do - returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) + sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) } + attr_reader :credit_allocation + + sig do + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) ) + .void end - def discount - end + attr_writer :credit_allocation + + sig { returns(String) } + attr_accessor :currency sig do - params( - _: T.nilable( + returns( + T.nilable( T.any( Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, @@ -15428,172 +13215,111 @@ module Orb ) ) ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::Item) - .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -15601,18 +13327,22 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Item, Orb::Util::AnyHash), max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), + maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -15652,7 +13382,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), @@ -15678,7 +13408,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) } ) @@ -15688,12 +13418,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -15706,68 +13431,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -15780,55 +13538,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -15843,21 +13626,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -15874,21 +13647,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -15901,31 +13664,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -15944,77 +13707,59 @@ module Orb class ScalableMatrixWithUnitPricingPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -16028,188 +13773,123 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) - .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end - - sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :name - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end + sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :scalable_matrix_with_unit_pricing_config sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, Orb::Util::AnyHash) + ), + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ), + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -16217,18 +13897,28 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::OrSymbol, scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -16268,7 +13958,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), @@ -16293,7 +13983,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol, scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) } @@ -16304,12 +13994,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -16322,68 +14007,109 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = + T.let(:one_time, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -16396,55 +14122,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -16459,21 +14214,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -16490,21 +14235,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -16517,31 +14252,34 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol]) + end + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -16560,77 +14298,59 @@ module Orb class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -16644,196 +14364,130 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) } - def item - end + attr_reader :item sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) - .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) - end - def item=(_) + params(item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, Orb::Util::AnyHash)) + .void end + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config sig do returns( T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) ) end - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) - ) - .returns( - T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def dimensional_price_configuration=(_) - end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, Orb::Util::AnyHash) + ), + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ), + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -16841,18 +14495,28 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::OrSymbol, scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -16892,7 +14556,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), @@ -16917,7 +14581,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol, scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) } @@ -16928,12 +14592,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -16946,68 +14605,112 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom - end + ONE_TIME = + T.let(:one_time, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) - class CreditAllocation < Orb::BaseModel - sig { returns(T::Boolean) } - def allows_rollover + class << self + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol]) + end + def values + end end + end - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + class CreditAllocation < Orb::BaseModel + sig { returns(T::Boolean) } + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -17020,55 +14723,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -17083,21 +14815,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -17114,21 +14836,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -17141,31 +14853,35 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol]) + end + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -17184,85 +14900,55 @@ module Orb class CumulativeGroupedBulkPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -17276,179 +14962,108 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::Item) - .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation, Orb::Util::AnyHash)), cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -17456,17 +15071,21 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, - maximum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -17506,7 +15125,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), @@ -17532,7 +15151,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration) } ) @@ -17542,12 +15161,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -17560,68 +15174,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -17634,55 +15281,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -17697,21 +15369,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -17728,21 +15390,11 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -17755,31 +15407,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -17795,6 +15447,17 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index adec5292..48962849 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -7,404 +7,215 @@ module Orb include Orb::RequestParameters # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PriceCreateParams::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id - sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Orb::Models::PriceCreateParams::ModelType::OrSymbol) } + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PriceCreateParams::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig { params(_: Orb::Models::PriceCreateParams::UnitConfig).returns(Orb::Models::PriceCreateParams::UnitConfig) } - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # 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)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig { returns(Orb::Models::PriceCreateParams::PackageConfig) } - def package_config - end + attr_reader :package_config - sig do - params(_: Orb::Models::PriceCreateParams::PackageConfig) - .returns(Orb::Models::PriceCreateParams::PackageConfig) - end - def package_config=(_) - end + sig { params(package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash)).void } + attr_writer :package_config sig { returns(Orb::Models::PriceCreateParams::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config - sig do - params(_: Orb::Models::PriceCreateParams::MatrixConfig) - .returns(Orb::Models::PriceCreateParams::MatrixConfig) - end - def matrix_config=(_) - end + sig { params(matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash)).void } + attr_writer :matrix_config sig { returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) } - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do - params(_: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) - .returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) - end - def matrix_with_allocation_config=(_) + params( + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_with_allocation_config sig { returns(Orb::Models::PriceCreateParams::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config - sig do - params(_: Orb::Models::PriceCreateParams::TieredConfig) - .returns(Orb::Models::PriceCreateParams::TieredConfig) - end - def tiered_config=(_) - end + sig { params(tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_config sig { returns(Orb::Models::PriceCreateParams::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config - sig do - params(_: Orb::Models::PriceCreateParams::TieredBpsConfig) - .returns(Orb::Models::PriceCreateParams::TieredBpsConfig) - end - def tiered_bps_config=(_) - end + sig { params(tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_bps_config sig { returns(Orb::Models::PriceCreateParams::BpsConfig) } - def bps_config - end + attr_reader :bps_config - sig { params(_: Orb::Models::PriceCreateParams::BpsConfig).returns(Orb::Models::PriceCreateParams::BpsConfig) } - def bps_config=(_) - end + sig { params(bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bps_config sig { returns(Orb::Models::PriceCreateParams::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config - sig do - params(_: Orb::Models::PriceCreateParams::BulkBpsConfig) - .returns(Orb::Models::PriceCreateParams::BulkBpsConfig) - end - def bulk_bps_config=(_) - end + sig { params(bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_bps_config sig { returns(Orb::Models::PriceCreateParams::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config - sig { params(_: Orb::Models::PriceCreateParams::BulkConfig).returns(Orb::Models::PriceCreateParams::BulkConfig) } - def bulk_config=(_) - end + sig { params(bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_config sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end + attr_accessor :tiered_package_with_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config sig do params( - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, 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: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash), + package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash), + tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash), + tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash), 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], @@ -426,14 +237,14 @@ module Orb 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(Orb::Models::PriceCreateParams::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -488,10 +299,10 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, name: String, unit_config: Orb::Models::PriceCreateParams::UnitConfig, billable_metric_id: T.nilable(String), @@ -538,36 +349,46 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::Cadence::TaggedSymbol]) } + def values + end + end end - class ModelType < Orb::Enum - abstract! + module ModelType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::ModelType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::ModelType::TaggedSymbol) } - CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk + CUMULATIVE_GROUPED_BULK = + T.let(:cumulative_grouped_bulk, Orb::Models::PriceCreateParams::ModelType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::ModelType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -581,102 +402,127 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) - end + sig { returns(Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol) } + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) - end + sig { returns(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -690,39 +536,21 @@ module Orb class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) - .returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -747,21 +575,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -781,49 +599,26 @@ module Orb class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) - .returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -849,21 +644,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -883,17 +668,12 @@ module Orb class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -904,30 +684,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -949,17 +714,12 @@ module Orb # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -970,39 +730,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -1035,21 +775,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -1064,17 +794,12 @@ module Orb # 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]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -1085,30 +810,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -1134,17 +844,12 @@ module Orb class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -1155,21 +860,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index 15ca6b94..7149dca5 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -8,61 +8,34 @@ module Orb # The exclusive upper bound for event timestamps sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The inclusive lower bound for event timestamps sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # The ID of the customer to which this evaluation is scoped. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The external customer ID of the customer to which this evaluation is scoped. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the underlying billable metric sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # Properties (or # [computed properties](/extensibility/advanced-metrics#computed-properties)) used # to group the underlying billable metric sig { returns(T.nilable(T::Array[String])) } - def grouping_keys - end + attr_reader :grouping_keys - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def grouping_keys=(_) - end + sig { params(grouping_keys: T::Array[String]).void } + attr_writer :grouping_keys sig do params( @@ -72,7 +45,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price_evaluate_response.rbi b/rbi/lib/orb/models/price_evaluate_response.rbi index 7395138f..c405ab67 100644 --- a/rbi/lib/orb/models/price_evaluate_response.rbi +++ b/rbi/lib/orb/models/price_evaluate_response.rbi @@ -4,14 +4,12 @@ module Orb module Models class PriceEvaluateResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::EvaluatePriceGroup]) } - def data - end + attr_accessor :data - sig { params(_: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T::Array[Orb::Models::EvaluatePriceGroup]) } - def data=(_) + sig do + params(data: T::Array[T.any(Orb::Models::EvaluatePriceGroup, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T.attached_class) } def self.new(data:) end diff --git a/rbi/lib/orb/models/price_fetch_params.rbi b/rbi/lib/orb/models/price_fetch_params.rbi index 8b5925cf..8800f11d 100644 --- a/rbi/lib/orb/models/price_fetch_params.rbi +++ b/rbi/lib/orb/models/price_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index e15322fb..16f2d9cb 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index f0c1f96e..0edbe52e 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi index 9de0afb2..cf4027c9 100644 --- a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi index 5507e3d4..4b9b77cc 100644 --- a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi @@ -11,20 +11,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 88a48505..7887ef61 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -4,99 +4,56 @@ module Orb module Models class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::AdjustmentInterval]) - .returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::Subscription::BillingCycleAnchorConfiguration) - .returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,167 +96,75 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::Subscription::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::MaximumInterval]) - .returns(T::Array[Orb::Models::Subscription::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::Subscription::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::MinimumInterval]) - .returns(T::Array[Orb::Models::Subscription::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::Subscription::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::PriceInterval]) - .returns(T::Array[Orb::Models::Subscription::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::Subscription::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params(redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Util::AnyHash))) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Subscription::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::Subscription::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig { params(_: Orb::Models::Subscription::TrialInfo).returns(Orb::Models::Subscription::TrialInfo) } - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info # A [subscription](/core-concepts#subscription) represents the purchase of a plan # by a customer. @@ -331,35 +189,36 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::Subscription::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::Subscription::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::Subscription::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::Subscription::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::Subscription::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Models::Subscription::Status::OrSymbol, + trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -425,7 +284,7 @@ module Orb price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::Subscription::Status::TaggedSymbol, trial_info: Orb::Models::Subscription::TrialInfo } ) @@ -435,12 +294,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -453,64 +307,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -546,8 +362,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -564,67 +380,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -669,67 +450,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -774,67 +520,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -879,76 +590,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -996,67 +667,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1098,6 +734,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1107,33 +754,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1146,8 +778,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1163,56 +795,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1255,57 +857,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1348,57 +920,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1437,40 +979,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1489,49 +1022,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1565,49 +1073,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1640,75 +1123,37 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # 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])) } - def fixed_fee_quantity_transitions - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) - .returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1754,97 +1199,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1857,9 +1222,12 @@ 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[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1326,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1993,28 +1346,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1365,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Subscription::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Subscription::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::Subscription::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index b242fa61..3a5b5fea 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -7,41 +7,26 @@ module Orb include Orb::RequestParameters # Determines the timing of subscription cancellation - sig { returns(Symbol) } - def cancel_option - end - - sig { params(_: Symbol).returns(Symbol) } - def cancel_option=(_) - end + sig { returns(Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol) } + attr_accessor :cancel_option # 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. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # The date that the cancellation should take effect. This parameter can only be # passed if the `cancel_option` is `requested_date`. sig { returns(T.nilable(Time)) } - def cancellation_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def cancellation_date=(_) - end + attr_accessor :cancellation_date sig do params( - cancel_option: Symbol, + cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -52,7 +37,7 @@ module Orb override .returns( { - cancel_option: Symbol, + 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 @@ -63,14 +48,24 @@ module Orb end # Determines the timing of subscription cancellation - class CancelOption < Orb::Enum - abstract! + module CancelOption + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelParams::CancelOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + END_OF_SUBSCRIPTION_TERM = + T.let(:end_of_subscription_term, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + REQUESTED_DATE = + T.let(:requested_date, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) - END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term - IMMEDIATE = :immediate - REQUESTED_DATE = :requested_date + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index b357d03f..81482c65 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionCancelResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end + attr_accessor :start_date - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionCancelResponse::TrialInfo) - .returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo + status: Orb::Models::SubscriptionCancelResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +345,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +363,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +761,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +778,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,19 +1140,7 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) - ) - .returns( - T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1746,97 +1186,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1849,9 +1209,17 @@ 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[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1950,28 +1318,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1985,28 +1338,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2019,24 +1357,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelResponse::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 7a9b1776..3d2ae711 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -9,311 +9,150 @@ module Orb # 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])) } - def add_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) - end - def add_adjustments=(_) - 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])) } - def add_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) - end - def add_prices=(_) - end + attr_accessor :add_prices sig { returns(T.nilable(T::Boolean)) } - def align_billing_with_subscription_start_date - end + attr_reader :align_billing_with_subscription_start_date - sig { params(_: T::Boolean).returns(T::Boolean) } - def align_billing_with_subscription_start_date=(_) - end + sig { params(align_billing_with_subscription_start_date: T::Boolean).void } + attr_writer :align_billing_with_subscription_start_date # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. If not specified, this # defaults to the behavior configured for this customer. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(String)) } - def aws_region - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def aws_region=(_) - end + attr_accessor :aws_region sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # Redemption code to be used for this subscription. If the coupon cannot be found # by its redemption code, or cannot be redeemed, an error response will be # returned and the subscription creation or plan change will not be scheduled. sig { returns(T.nilable(String)) } - def coupon_redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def coupon_redemption_code=(_) - end + attr_accessor :coupon_redemption_code sig { returns(T.nilable(Float)) } - def credits_overage_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def credits_overage_rate=(_) - end + attr_accessor :credits_overage_rate sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end - - sig { returns(T.nilable(Symbol)) } - def external_marketplace - end + attr_accessor :external_customer_id - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def external_marketplace=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol)) } + attr_accessor :external_marketplace sig { returns(T.nilable(String)) } - def external_marketplace_reporting_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_marketplace_reporting_id=(_) - end + attr_accessor :external_marketplace_reporting_id # The external_plan_id of the plan that the given subscription should be switched # to. Note that either this property or `plan_id` must be specified. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The phase of the plan to start with sig { returns(T.nilable(Integer)) } - def initial_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def initial_phase_order=(_) - end + attr_accessor :initial_phase_order # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. If not provided, this defaults to the value specified in the plan. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(Float)) } - def per_credit_overage_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def per_credit_overage_amount=(_) - end + attr_accessor :per_credit_overage_amount # The plan that the given subscription should be switched to. Note that either # this property or `external_plan_id` must be specified. sig { returns(T.nilable(String)) } - def plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def plan_id=(_) - end + attr_accessor :plan_id # Specifies which version of the plan to subscribe to. If null, the default # version will be used. sig { returns(T.nilable(Integer)) } - def plan_version_number - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_version_number=(_) - end + attr_accessor :plan_version_number # Optionally provide a list of overrides for prices on the plan sig { returns(T.nilable(T::Array[T.anything])) } - def price_overrides - end - - sig { params(_: T.nilable(T::Array[T.anything])).returns(T.nilable(T::Array[T.anything])) } - def price_overrides=(_) - end + attr_accessor :price_overrides # 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])) } - def remove_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) - end - def remove_adjustments=(_) - 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])) } - def remove_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) - end - def remove_prices=(_) - 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])) } - def replace_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) - end - def replace_adjustments=(_) - 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])) } - def replace_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) - end - def replace_prices=(_) - end + attr_accessor :replace_prices sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date # The duration of the trial period in days. If not provided, this defaults to the # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. sig { returns(T.nilable(Integer)) } - def trial_duration_days - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_duration_days=(_) - end + attr_accessor :trial_duration_days # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -322,28 +161,25 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Util::AnyHash)]), + add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Util::AnyHash)]), 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), + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), customer_id: T.nilable(String), default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), + external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -355,14 +191,14 @@ 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[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]), + remove_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Util::AnyHash)]), + remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Util::AnyHash)]), + replace_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Util::AnyHash)]), + replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Util::AnyHash)]), 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, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -418,7 +254,7 @@ module Orb default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), + 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), @@ -457,66 +293,28 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The phase to add this adjustment to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date sig do params( adjustment: T.any( Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, @@ -552,8 +350,8 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -570,39 +368,22 @@ module Orb class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -633,39 +414,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -696,39 +460,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -759,48 +506,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -833,39 +558,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -893,83 +601,61 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum] + ) + end + def variants + end + end end end class AddPrice < Orb::BaseModel # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Util::AnyHash)) + ) + .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])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop # billing on the subscription. If null, billing will end when the phase or # subscription ends. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # this price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # this price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The phase to add this price to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The definition of a new price to create and add to the subscription. sig do @@ -1005,14 +691,31 @@ module Orb ) ) end - def price - end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + # The start date of the price interval. This is the date that the price will start + # billing on the subscription. If null, billing will start when the phase or + # subscription starts. + sig { returns(T.nilable(Time)) } + attr_accessor :start_date sig do params( - _: T.nilable( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Util::AnyHash)), + discounts: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Discount, Orb::Util::AnyHash)]), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( T.any( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, @@ -1038,103 +741,9 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end - - # The start date of the price interval. This is the date that the price will start - # billing on the subscription. If null, billing will start when the phase or - # subscription starts. - sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end - - sig do - params( - 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( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) ) .returns(T.attached_class) end @@ -1203,45 +812,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -1249,72 +843,75 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol]) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1328,7 +925,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1338,20 +935,35 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let(:percentage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + USAGE = + T.let(:usage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + AMOUNT = + T.let(:amount, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol]) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -1388,70 +1000,47 @@ module Orb class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1462,70 +1051,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1536,58 +1097,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1595,7 +1146,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1627,7 +1181,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1654,28 +1208,66 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1689,158 +1281,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1851,70 +1494,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1925,58 +1540,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1984,7 +1589,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2016,7 +1624,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2043,38 +1651,73 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -2088,152 +1731,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2244,70 +1940,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2318,58 +1986,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2377,7 +2035,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2409,7 +2070,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -2436,37 +2097,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -2476,30 +2170,17 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2527,21 +2208,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2561,152 +2232,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) - end - def tiered_config=(_) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2717,70 +2441,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2791,58 +2487,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2850,7 +2536,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2882,7 +2571,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2909,17 +2598,60 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2929,23 +2661,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ] ) .returns(T.attached_class) end @@ -2966,30 +2691,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -3012,158 +2722,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3174,70 +2935,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3248,58 +2981,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3307,7 +3030,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3339,7 +3065,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3366,17 +3092,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3389,28 +3162,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3434,39 +3194,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3499,150 +3239,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3653,70 +3448,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3727,58 +3494,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3786,7 +3543,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3819,7 +3579,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3847,21 +3607,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3873,96 +3623,217 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3973,74 +3844,47 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4051,70 +3895,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4125,58 +3941,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4184,7 +3990,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4217,7 +4026,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4250,23 +4059,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4287,30 +4089,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4334,166 +4121,266 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4504,70 +4391,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4578,58 +4437,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4637,7 +4486,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4670,7 +4522,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4702,23 +4554,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4739,21 +4584,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4766,163 +4601,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4933,70 +4858,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5007,58 +4904,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5066,7 +4950,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5098,7 +4985,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5125,163 +5012,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5292,70 +5273,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5366,58 +5319,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5425,7 +5365,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5457,7 +5400,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5484,163 +5427,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5651,70 +5688,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5725,58 +5734,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5784,7 +5780,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5816,7 +5815,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5843,163 +5842,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6010,70 +6103,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6084,58 +6149,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6143,7 +6195,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6175,7 +6230,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6202,163 +6257,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6369,70 +6518,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6443,58 +6564,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6502,7 +6610,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6534,7 +6645,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6561,163 +6672,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6728,70 +6933,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6802,58 +6979,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6861,7 +7025,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6893,7 +7060,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6920,163 +7087,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7087,70 +7348,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7161,58 +7394,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7220,7 +7440,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7252,7 +7475,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7279,163 +7502,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) - end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end + def self.new(duration:, duration_unit:) + end + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7446,70 +7763,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7520,58 +7809,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7579,7 +7855,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7611,7 +7890,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7638,163 +7917,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7805,70 +8178,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7879,58 +8224,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7938,7 +8270,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7970,7 +8305,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7997,163 +8332,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8164,70 +8593,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8238,58 +8639,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8297,7 +8685,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8330,7 +8721,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8356,163 +8747,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8523,70 +9008,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8597,58 +9054,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8656,7 +9100,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8688,7 +9135,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8715,163 +9162,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end + end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8882,70 +9423,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8956,58 +9469,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9015,7 +9515,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9047,7 +9550,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -9074,163 +9577,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9241,70 +9838,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9315,58 +9884,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9374,7 +9930,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9406,7 +9965,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9433,163 +9992,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9600,70 +10253,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9674,58 +10299,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9733,7 +10345,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9765,7 +10380,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -9792,163 +10407,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9959,70 +10668,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10033,58 +10714,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10092,7 +10760,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10124,7 +10795,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10151,163 +10822,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10318,70 +11083,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10392,58 +11129,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10451,7 +11175,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10483,7 +11210,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -10510,163 +11237,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10677,70 +11498,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10751,58 +11544,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10810,7 +11590,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10842,7 +11625,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10869,99 +11652,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end @@ -10971,33 +11890,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -11010,25 +11914,28 @@ module Orb end end - class ExternalMarketplace < Orb::Enum - abstract! + module ExternalMarketplace + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) } - GOOGLE = :google - AWS = :aws - AZURE = :azure + 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) + + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol]) } + def values + end + end end class RemoveAdjustment < Orb::BaseModel # The id of the adjustment to remove on the subscription. sig { returns(String) } - def adjustment_id - end - - sig { params(_: String).returns(String) } - def adjustment_id=(_) - end + attr_accessor :adjustment_id sig { params(adjustment_id: String).returns(T.attached_class) } def self.new(adjustment_id:) @@ -11042,21 +11949,11 @@ module Orb class RemovePrice < Orb::BaseModel # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) @@ -11082,45 +11979,17 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The id of the adjustment on the plan to replace in the subscription. sig { returns(String) } - def replaces_adjustment_id - end - - sig { params(_: String).returns(String) } - def replaces_adjustment_id=(_) - end + attr_accessor :replaces_adjustment_id sig do params( adjustment: T.any( Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, @@ -11152,8 +12021,8 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -11170,39 +12039,22 @@ module Orb class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11233,39 +12085,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11296,39 +12131,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11359,48 +12177,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11433,39 +12229,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11493,81 +12272,59 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum] + ) + end + def variants + end + end end end class ReplacePrice < Orb::BaseModel # The id of the price on the plan to replace in the subscription. sig { returns(String) } - def replaces_price_id - end - - sig { params(_: String).returns(String) } - def replaces_price_id=(_) - end + 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)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Util::AnyHash)) + ) + .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])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The new quantity of the price, if the price is a fixed price. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # the replacement price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # the replacement price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -11603,90 +12360,19 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Util::AnyHash)), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount, Orb::Util::AnyHash)] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), @@ -11694,6 +12380,7 @@ module Orb price: T.nilable( T.any( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, @@ -11787,45 +12474,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -11833,72 +12505,92 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11912,7 +12604,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11922,20 +12614,40 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let(:usage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) + AMOUNT = + T.let(:amount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -11972,72 +12684,47 @@ module Orb class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end - def unit_config=(_) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12048,70 +12735,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12122,58 +12781,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12181,7 +12830,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12213,7 +12865,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12240,28 +12892,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -12275,158 +12969,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12437,70 +13182,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12511,58 +13228,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12570,7 +13277,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12602,7 +13312,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12629,38 +13339,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -12674,158 +13421,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12836,70 +13634,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12910,58 +13680,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12969,7 +13729,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13001,7 +13764,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -13028,37 +13791,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -13068,30 +13868,17 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13119,21 +13906,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -13153,158 +13930,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13315,70 +14143,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13389,58 +14189,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13448,7 +14238,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13480,7 +14273,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13507,17 +14300,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -13527,23 +14367,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ] ) .returns(T.attached_class) end @@ -13564,30 +14397,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -13610,158 +14428,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13772,70 +14641,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13846,58 +14687,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13905,7 +14736,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13937,7 +14771,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13964,17 +14798,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -13987,28 +14868,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14032,39 +14900,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -14097,150 +14945,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14251,70 +15154,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14325,58 +15200,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14384,7 +15249,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14417,7 +15285,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14445,21 +15313,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -14471,96 +15329,219 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash + def self.new(duration:, duration_unit:) + end + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14571,74 +15552,47 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14649,70 +15603,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14723,58 +15649,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14782,7 +15698,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14815,7 +15734,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14850,28 +15769,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14895,30 +15801,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -14942,168 +15833,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end - def bulk_config=(_) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15114,70 +16105,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15188,58 +16151,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15247,7 +16200,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15280,7 +16236,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15312,23 +16268,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -15349,21 +16298,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -15376,163 +16315,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15543,70 +16576,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15617,58 +16622,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15676,7 +16668,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15708,7 +16703,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15735,163 +16730,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15902,70 +16991,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15976,58 +17037,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16035,7 +17083,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16067,7 +17118,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16094,163 +17145,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16261,70 +17406,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16335,58 +17452,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16394,7 +17498,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16426,7 +17533,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16453,163 +17560,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16620,70 +17821,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16694,58 +17867,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16753,7 +17913,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16785,7 +17948,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16812,163 +17975,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16979,70 +18236,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17053,58 +18282,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17112,7 +18328,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17144,7 +18363,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17171,163 +18390,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17338,70 +18651,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17412,58 +18697,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17471,7 +18743,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17503,7 +18778,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17530,163 +18805,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17697,70 +19066,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17771,58 +19112,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17830,7 +19158,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17862,7 +19193,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17889,163 +19220,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18056,70 +19481,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18130,58 +19527,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18189,7 +19573,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18221,7 +19608,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18248,163 +19635,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18415,70 +19896,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18489,58 +19942,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18548,7 +19988,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18580,7 +20023,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18607,163 +20050,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end + end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18774,70 +20311,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18848,58 +20357,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18907,7 +20403,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18940,7 +20439,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -18966,163 +20465,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19133,70 +20726,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19207,58 +20772,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19266,7 +20818,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19298,7 +20853,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19325,163 +20880,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19492,70 +21141,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19566,58 +21187,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19625,7 +21233,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19657,7 +21268,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19684,163 +21295,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19851,70 +21556,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19925,58 +21602,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19984,7 +21648,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20016,7 +21683,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20043,163 +21710,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20210,70 +21971,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20284,58 +22017,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end - - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20343,7 +22063,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20375,7 +22098,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -20402,163 +22125,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20569,70 +22386,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20643,58 +22432,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20702,7 +22478,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20734,7 +22513,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20761,163 +22540,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20928,70 +22801,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21002,58 +22847,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21061,7 +22893,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21093,7 +22928,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -21120,163 +22955,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -21287,70 +23216,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21361,58 +23262,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21420,7 +23308,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21452,7 +23343,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -21479,99 +23370,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 3be63a6e..36fbcb73 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end + attr_accessor :start_date - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionCreateResponse::TrialInfo) - .returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo + status: Orb::Models::SubscriptionCreateResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +345,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +363,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +761,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +778,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,19 +1140,7 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) - ) - .returns( - T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1746,97 +1186,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1849,9 +1209,17 @@ 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[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1950,28 +1318,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1985,28 +1338,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2019,24 +1357,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateResponse::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index 525c9289..e7002313 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -8,50 +8,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # 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 # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -65,7 +45,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -77,13 +57,21 @@ 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. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi index bd02279b..e3cf1df1 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi @@ -4,17 +4,12 @@ module Orb module Models class SubscriptionFetchCostsResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) - .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -24,53 +19,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -132,118 +99,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, diff --git a/rbi/lib/orb/models/subscription_fetch_params.rbi b/rbi/lib/orb/models/subscription_fetch_params.rbi index 50a9ce0a..b0d4d44d 100644 --- a/rbi/lib/orb/models/subscription_fetch_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index 927d70f0..ec541c8c 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -9,53 +9,26 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(Time)) } - def start_date_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_gt=(_) - end + attr_accessor :start_date_gt sig { returns(T.nilable(Time)) } - def start_date_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_gte=(_) - end + attr_accessor :start_date_gte sig { returns(T.nilable(Time)) } - def start_date_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_lt=(_) - end + attr_accessor :start_date_lt sig { returns(T.nilable(Time)) } - def start_date_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_lte=(_) - end + attr_accessor :start_date_lte sig do params( @@ -65,7 +38,7 @@ 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, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi index a76df9ce..ecf10b6f 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi @@ -4,45 +4,25 @@ module Orb module Models class SubscriptionFetchScheduleResponse < Orb::BaseModel sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) } - def plan - end + attr_reader :plan - sig do - params(_: Orb::Models::SubscriptionFetchScheduleResponse::Plan) - .returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) - end - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( created_at: Time, end_date: T.nilable(Time), - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Util::AnyHash), start_date: Time ) .returns(T.attached_class) @@ -66,31 +46,16 @@ module Orb class Plan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # 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. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index 85ed27ed..cb351eab 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -10,106 +10,56 @@ module Orb # single billable metric. Note that both `group_by` and `billable_metric_id` must # be specified together. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id sig { returns(T.nilable(String)) } - def first_dimension_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def first_dimension_key=(_) - end + attr_accessor :first_dimension_key sig { returns(T.nilable(String)) } - def first_dimension_value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def first_dimension_value=(_) - end + attr_accessor :first_dimension_value # This determines the windowing of usage reporting. - sig { returns(T.nilable(Symbol)) } - def granularity - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def granularity=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol)) } + attr_accessor :granularity # Groups per-price usage by the key provided. sig { returns(T.nilable(String)) } - def group_by - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def group_by=(_) - end + attr_accessor :group_by sig { returns(T.nilable(String)) } - def second_dimension_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def second_dimension_key=(_) - end + attr_accessor :second_dimension_key sig { returns(T.nilable(String)) } - def second_dimension_value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def second_dimension_value=(_) - end + attr_accessor :second_dimension_value # Usage returned is exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Usage returned is inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Controls whether Orb returns cumulative usage since the start of the billing # 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(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + 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(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -135,13 +85,13 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + 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(Symbol), + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -150,25 +100,41 @@ module Orb end # This determines the windowing of usage reporting. - class Granularity < Orb::Enum - abstract! + module Granularity + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) } - DAY = :day + DAY = T.let(:day, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol]) } + def values + end + end end # Controls whether Orb returns cumulative usage since the start of the billing # 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. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index 684c821b..f9bd2dc7 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -7,79 +7,37 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor sig { returns(T.nilable(T::Array[String])) } - def customer_id - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def customer_id=(_) - end + attr_accessor :customer_id sig { returns(T.nilable(T::Array[String])) } - def external_customer_id - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end - - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + attr_reader :limit - sig { returns(T.nilable(Symbol)) } - def status - end + sig { params(limit: Integer).void } + attr_writer :limit - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def status=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol)) } + attr_accessor :status sig do params( @@ -91,8 +49,8 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -122,7 +80,7 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), request_options: Orb::RequestOptions } ) @@ -130,14 +88,21 @@ module Orb def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index 59a81cd1..32965c60 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -8,71 +8,56 @@ module Orb # A list of price intervals to add to the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add])) } - def add - end + attr_reader :add - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) - end - def add=(_) - end + sig { params(add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)]).void } + attr_writer :add # A list of adjustments to add to the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment])) } - def add_adjustments - end + attr_reader :add_adjustments sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) - end - def add_adjustments=(_) + params( + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)] + ) + .void end + attr_writer :add_adjustments # 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. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + 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])) } - def edit - end + attr_reader :edit - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) - end - def edit=(_) - end + sig { params(edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)]).void } + attr_writer :edit # A list of adjustments to edit on the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment])) } - def edit_adjustments - end + attr_reader :edit_adjustments sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) - end - def edit_adjustments=(_) + params( + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)] + ) + .void end + attr_writer :edit_adjustments sig do params( - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)], + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)], 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: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)], + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)], + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -105,25 +90,20 @@ module Orb class Add < Orb::BaseModel # 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, Symbol)) } - def start_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { returns(T.any(Time, Orb::Models::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)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :allocation_price # A list of discounts to initialize on the price interval. sig do @@ -139,66 +119,23 @@ module Orb ) ) end - def discounts - end - - sig do - params( - _: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ) - ] - ) - ) - .returns( - T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ) - ] - ) - ) - end - def discounts=(_) - end + attr_accessor :discounts # 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, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # A list of fixed fee quantity transitions to initialize on the price interval. sig do @@ -206,39 +143,17 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) - ) - .returns( - T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The maximum amount that will be billed for this price interval for a given # billing period. sig { returns(T.nilable(Float)) } - def maximum_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The minimum amount that will be billed for this price interval for a given # billing period. sig { returns(T.nilable(Float)) } - def minimum_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -277,90 +192,11 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -369,35 +205,34 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - start_date: T.any(Time, Symbol), - allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Util::AnyHash)), discounts: T.nilable( T::Array[ T.any( Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams ) ] ), - end_date: T.nilable(T.any(Time, Symbol)), + 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]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), maximum_amount: T.nilable(Float), minimum_amount: T.nilable(Float), price: T.nilable( T.any( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, @@ -452,7 +287,7 @@ module Orb override .returns( { - start_date: T.any(Time, Symbol), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), discounts: T.nilable( T::Array[ @@ -463,7 +298,7 @@ module Orb ) ] ), - end_date: T.nilable(T.any(Time, Symbol)), + 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]), @@ -511,54 +346,45 @@ module Orb # The start date of the price interval. This is the date that the price will start # billing on the subscription. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -566,33 +392,67 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union Variants = type_template(:out) do @@ -608,20 +468,10 @@ module Orb class AmountDiscountCreationParams < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(Float) } - def amount_discount - end - - sig { params(_: Float).returns(Float) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { params(amount_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(amount_discount:, discount_type: :amount) @@ -634,22 +484,12 @@ module Orb class PercentageDiscountCreationParams < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(percentage_discount:, discount_type: :percentage) @@ -662,22 +502,12 @@ module Orb class UsageDiscountCreationParams < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # Only available if discount_type is `usage`. Number of usage units that this # discount is for. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig { params(usage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(usage_discount:, discount_type: :usage) @@ -687,34 +517,41 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] + ) + end + def variants + end + end end # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class FixedFeeQuantityTransition < Orb::BaseModel # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date # The quantity of the fixed fee quantity transition. sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, quantity:) @@ -726,8 +563,8 @@ module Orb end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -767,79 +604,51 @@ module Orb class NewFloatingUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -850,60 +659,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -914,56 +700,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -993,7 +777,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -1019,28 +803,66 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1054,161 +876,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) - end - def package_config=(_) + .void end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1219,60 +1089,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1283,56 +1130,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -1362,7 +1207,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -1388,38 +1233,71 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -1433,159 +1311,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1596,60 +1524,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1660,56 +1565,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -1739,7 +1642,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, @@ -1765,37 +1668,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -1805,30 +1741,17 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -1856,21 +1779,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1890,167 +1803,213 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig ) end - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig - ) - .returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig + matrix_with_allocation_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_with_allocation_config=(_) - end + attr_writer :matrix_with_allocation_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2061,60 +2020,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2125,56 +2061,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + matrix_with_allocation_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -2204,7 +2138,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, @@ -2230,46 +2164,78 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -2279,23 +2245,7 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( @@ -2303,7 +2253,10 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2332,21 +2285,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2366,159 +2309,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) - end - def tiered_config=(_) + params( + tiered_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2529,60 +2522,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2593,56 +2563,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -2672,7 +2640,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -2698,17 +2666,60 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2718,23 +2729,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ] ) .returns(T.attached_class) end @@ -2755,30 +2759,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2801,167 +2790,213 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2972,60 +3007,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3036,56 +3048,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3115,7 +3125,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3141,17 +3151,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3164,28 +3221,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3209,39 +3253,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3274,159 +3298,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3437,60 +3507,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3501,56 +3548,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::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( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3581,7 +3626,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3608,21 +3653,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3634,177 +3669,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) + .void end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3815,60 +3941,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3879,56 +3982,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::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( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3959,7 +4060,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3991,23 +4092,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4028,30 +4122,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4075,175 +4154,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4254,60 +4426,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4318,56 +4467,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::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( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4398,7 +4545,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -4429,23 +4576,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4466,21 +4606,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4493,172 +4623,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + end - class BillingCycleConfiguration < Orb::BaseModel - # The duration of the billing period. - sig { returns(Integer) } - def duration - end + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end end + end - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + class BillingCycleConfiguration < Orb::BaseModel + # The duration of the billing period. + sig { returns(Integer) } + attr_accessor :duration + + # The unit of billing period duration. + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4669,60 +4884,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4733,41 +4925,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -4775,14 +4956,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4812,7 +4999,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -4838,172 +5025,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5014,60 +5290,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5078,41 +5331,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -5120,14 +5362,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5157,7 +5405,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -5183,172 +5431,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5359,60 +5696,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5423,41 +5737,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, grouped_tiered_config: T::Hash[Symbol, T.anything], item_id: String, @@ -5465,14 +5768,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5502,7 +5811,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, grouped_tiered_config: T::Hash[Symbol, T.anything], item_id: String, @@ -5528,172 +5837,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5704,60 +6102,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5768,41 +6143,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], @@ -5810,14 +6174,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5847,7 +6217,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], @@ -5873,172 +6243,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6049,60 +6508,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6113,41 +6549,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6155,14 +6580,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6192,7 +6623,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6218,172 +6649,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingPackageWithAllocationPrice < Orb::BaseModel - # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + # The cadence to bill for this price on. + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6394,60 +6914,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6458,41 +6955,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6500,14 +6986,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6537,7 +7029,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6563,172 +7055,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end + attr_accessor :tiered_package_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6739,60 +7320,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6803,41 +7361,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6845,14 +7392,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6882,7 +7435,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6908,172 +7461,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7084,60 +7726,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7148,41 +7767,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7190,14 +7798,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7227,7 +7841,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7253,172 +7867,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7429,60 +8132,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7493,41 +8173,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7535,14 +8204,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7572,7 +8247,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7598,172 +8273,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7774,60 +8538,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7838,41 +8579,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7880,14 +8610,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7917,7 +8653,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7943,172 +8679,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8119,60 +8944,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8183,41 +8985,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8225,14 +9016,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8262,7 +9059,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8288,172 +9085,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end + attr_accessor :duration - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # The unit of billing period duration. + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8464,60 +9350,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8528,41 +9391,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8570,14 +9422,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8607,7 +9465,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8633,172 +9491,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8809,60 +9756,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8873,41 +9797,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8915,14 +9828,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8952,7 +9871,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8978,172 +9897,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9154,60 +10162,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9218,41 +10203,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], @@ -9260,14 +10234,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9297,7 +10277,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], @@ -9323,172 +10303,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9499,60 +10568,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9563,56 +10609,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::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( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9643,7 +10684,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -9668,172 +10709,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9844,60 +10974,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9908,41 +11015,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, @@ -9950,14 +11046,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9987,7 +11089,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, @@ -10013,172 +11115,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10189,60 +11380,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10253,41 +11421,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -10295,14 +11452,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -10332,7 +11495,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -10358,172 +11521,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10534,60 +11786,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10598,41 +11827,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -10640,14 +11858,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -10677,7 +11901,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -10703,172 +11927,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10879,60 +12192,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10943,41 +12233,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, item_id: String, @@ -10985,14 +12264,20 @@ module Orb billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -11022,7 +12307,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, item_id: String, @@ -11048,99 +12333,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice] + ) + end + def variants + end + end end end @@ -11157,67 +12578,34 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The start date of the adjustment interval. This is the date that the adjustment # 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, Symbol)) } - def start_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { returns(T.any(Time, Orb::Models::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, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date sig do params( adjustment: T.any( Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum ), - start_date: T.any(Time, Symbol), - end_date: T.nilable(T.any(Time, Symbol)) + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) ) .returns(T.attached_class) end @@ -11235,8 +12623,8 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum ), - start_date: T.any(Time, Symbol), - end_date: T.nilable(T.any(Time, Symbol)) + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } ) end @@ -11244,8 +12632,8 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -11262,39 +12650,22 @@ module Orb class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11325,39 +12696,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11388,39 +12742,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11451,48 +12788,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11525,39 +12840,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11585,71 +12883,74 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum] + ) + end + def variants + end + end end # The start date of the adjustment interval. This is the date that the adjustment # 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. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end # 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. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end class Edit < Orb::BaseModel # The id of the price interval to edit. sig { returns(String) } - def price_interval_id - end - - sig { params(_: String).returns(String) } - def price_interval_id=(_) - end + attr_accessor :price_interval_id # The updated billing cycle day for this price interval. If not specified, the # billing cycle day will not be updated. Note that overlapping price intervals # must have the same billing cycle day. sig { returns(T.nilable(Integer)) } - def billing_cycle_day - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # 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, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # A list of fixed fee quantity transitions to use for this price interval. Note # that this list will overwrite all existing fixed fee quantity transitions on the @@ -11659,29 +12960,15 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) - ) - .returns( - T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) - ) - end - def fixed_fee_quantity_transitions=(_) - 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, Symbol))) } - def start_date - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_reader :start_date - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + attr_writer :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -11690,21 +12977,18 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Symbol)), + 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, Symbol), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -11726,10 +13010,10 @@ module Orb { price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Symbol)), + 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, Symbol), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), usage_customer_ids: T.nilable(T::Array[String]) } ) @@ -11739,30 +13023,26 @@ module Orb # The updated end date of this price interval. If not specified, the start date # will not be updated. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class FixedFeeQuantityTransition < Orb::BaseModel # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date # The quantity of the fixed fee quantity transition. sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, quantity:) @@ -11775,48 +13055,42 @@ module Orb # The updated start date of this price interval. If not specified, the start date # will not be updated. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end class EditAdjustment < Orb::BaseModel # The id of the adjustment interval to edit. sig { returns(String) } - def adjustment_interval_id - end - - sig { params(_: String).returns(String) } - def adjustment_interval_id=(_) - end + 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, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + 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, Symbol))) } - def start_date - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_reader :start_date - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + attr_writer :start_date sig do params( adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Symbol)), - start_date: T.any(Time, Symbol) + 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 @@ -11828,8 +13102,8 @@ module Orb .returns( { adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Symbol)), - start_date: T.any(Time, Symbol) + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol) } ) end @@ -11838,18 +13112,30 @@ module Orb # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index 03e7bebf..ce971024 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionPriceIntervalsResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,118 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) - .returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) - end - def trial_info=(_) + params(trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Util::AnyHash)) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo + status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +276,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo } ) @@ -419,12 +286,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +299,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +354,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +372,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +442,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +512,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +582,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +659,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +726,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +746,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +770,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +787,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +849,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +912,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +971,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1014,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1065,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1115,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1151,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1197,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1221,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1331,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1351,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1370,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi index eb5cbf95..731327a2 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -6,276 +6,143 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { returns(Symbol) } - def change_option - end - - sig { params(_: Symbol).returns(Symbol) } - def change_option=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol) } + 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])) } - def add_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) - end - def add_adjustments=(_) - 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])) } - def add_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) - end - def add_prices=(_) - end + attr_accessor :add_prices # [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be # aligned with the plan change's effective date. sig { returns(T.nilable(T::Boolean)) } - def align_billing_with_plan_change_date - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def align_billing_with_plan_change_date=(_) - end + attr_accessor :align_billing_with_plan_change_date # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. If not specified, this # defaults to the behavior configured for this customer. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection # 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(Symbol)) } - def billing_cycle_alignment - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def billing_cycle_alignment=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol)) } + attr_accessor :billing_cycle_alignment sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The date that the plan change should take effect. This parameter can only be # passed if the `change_option` is `requested_date`. If a date with no time is # passed, the plan change will happen at midnight in the customer's timezone. sig { returns(T.nilable(Time)) } - def change_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def change_date=(_) - end + attr_accessor :change_date # Redemption code to be used for this subscription. If the coupon cannot be found # by its redemption code, or cannot be redeemed, an error response will be # returned and the subscription creation or plan change will not be scheduled. sig { returns(T.nilable(String)) } - def coupon_redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def coupon_redemption_code=(_) - end + attr_accessor :coupon_redemption_code sig { returns(T.nilable(Float)) } - def credits_overage_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def credits_overage_rate=(_) - end + attr_accessor :credits_overage_rate # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The external_plan_id of the plan that the given subscription should be switched # to. Note that either this property or `plan_id` must be specified. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The phase of the plan to start with sig { returns(T.nilable(Integer)) } - def initial_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def initial_phase_order=(_) - end + attr_accessor :initial_phase_order # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. If not provided, this defaults to the value specified in the plan. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(Float)) } - def per_credit_overage_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def per_credit_overage_amount=(_) - end + attr_accessor :per_credit_overage_amount # The plan that the given subscription should be switched to. Note that either # this property or `external_plan_id` must be specified. sig { returns(T.nilable(String)) } - def plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def plan_id=(_) - end + attr_accessor :plan_id # Specifies which version of the plan to change to. If null, the default version # will be used. sig { returns(T.nilable(Integer)) } - def plan_version_number - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_version_number=(_) - end + attr_accessor :plan_version_number # Optionally provide a list of overrides for prices on the plan sig { returns(T.nilable(T::Array[T.anything])) } - def price_overrides - end - - sig { params(_: T.nilable(T::Array[T.anything])).returns(T.nilable(T::Array[T.anything])) } - def price_overrides=(_) - end + attr_accessor :price_overrides # 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])) } - def remove_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) - end - def remove_adjustments=(_) - 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])) } - def remove_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) - end - def remove_prices=(_) - 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])) } - def replace_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) - end - def replace_adjustments=(_) - 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])) } - def replace_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) - end - def replace_prices=(_) - end + attr_accessor :replace_prices # The duration of the trial period in days. If not provided, this defaults to the # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. sig { returns(T.nilable(Integer)) } - def trial_duration_days - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_duration_days=(_) - end + attr_accessor :trial_duration_days # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -284,22 +151,26 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Util::AnyHash)] + ), + add_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Util::AnyHash)] + ), align_billing_with_plan_change_date: T.nilable(T::Boolean), auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Symbol), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), + billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -313,13 +184,21 @@ 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[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]), + remove_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Util::AnyHash)] + ), + remove_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Util::AnyHash)] + ), + replace_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Util::AnyHash)] + ), + replace_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Util::AnyHash)] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -358,12 +237,12 @@ module Orb override .returns( { - change_option: Symbol, + 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(Symbol), + 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), @@ -391,14 +270,29 @@ module Orb def to_hash end - class ChangeOption < Orb::Enum - abstract! + module ChangeOption + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) } - REQUESTED_DATE = :requested_date - END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term - IMMEDIATE = :immediate + REQUESTED_DATE = + T.let(:requested_date, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + END_OF_SUBSCRIPTION_TERM = + T.let( + :end_of_subscription_term, + Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + ) + IMMEDIATE = + T.let(:immediate, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol]) } + def values + end + end end class AddAdjustment < Orb::BaseModel @@ -414,66 +308,28 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The phase to add this adjustment to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date sig do params( adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, @@ -509,8 +365,8 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -527,39 +383,22 @@ module Orb class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -590,39 +429,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -653,39 +475,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -716,48 +521,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -790,39 +573,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -850,83 +616,63 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum] + ) + end + def variants + end + end end end class AddPrice < Orb::BaseModel # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable( + T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, Orb::Util::AnyHash) + ) + ) + .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])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop # billing on the subscription. If null, billing will end when the phase or # subscription ends. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # this price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # this price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The phase to add this price to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The definition of a new price to create and add to the subscription. sig do @@ -962,14 +708,35 @@ module Orb ) ) end - def price - end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + # The start date of the price interval. This is the date that the price will start + # billing on the subscription. If null, billing will start when the phase or + # subscription starts. + sig { returns(T.nilable(Time)) } + attr_accessor :start_date sig do params( - _: T.nilable( + allocation_price: T.nilable( + T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, Orb::Util::AnyHash) + ), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount, Orb::Util::AnyHash)] + ), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, @@ -995,122 +762,28 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) - ) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) ) - .returns( - T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end - - # The start date of the price interval. This is the date that the price will start - # billing on the subscription. If null, billing will start when the phase or - # subscription starts. - sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end - - sig do - params( - 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( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) - ) - .returns(T.attached_class) - end - def self.new( - 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 - ) - end - - sig do - override + .returns(T.attached_class) + end + def self.new( + 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 + ) + end + + sig do + override .returns( { allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice), @@ -1160,45 +833,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -1206,72 +864,97 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1285,7 +968,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1295,20 +978,51 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let( + :usage, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + AMOUNT = + T.let( + :amount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -1345,78 +1059,51 @@ module Orb class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig ) end - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash ) + ) + .void end - def unit_config=(_) - end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1427,70 +1114,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1501,58 +1160,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1560,7 +1209,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1592,7 +1244,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1619,28 +1271,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - class UnitConfig < Orb::BaseModel - # Rate per unit of usage - sig { returns(String) } - def unit_amount - end + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end + end + + class UnitConfig < Orb::BaseModel + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1654,158 +1348,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1816,70 +1561,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1890,58 +1607,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1949,7 +1656,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1981,7 +1691,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2008,38 +1718,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -2053,158 +1800,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2215,70 +2013,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2289,58 +2059,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2348,7 +2108,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2380,7 +2143,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -2407,37 +2170,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -2447,30 +2247,17 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2498,21 +2285,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2532,158 +2309,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2694,70 +2522,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2768,58 +2568,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2827,7 +2617,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2859,7 +2652,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2886,17 +2679,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2908,28 +2748,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2953,30 +2780,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2999,158 +2811,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3161,70 +3024,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3235,58 +3070,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3294,7 +3119,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3326,7 +3154,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3353,17 +3181,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3376,28 +3251,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3421,39 +3283,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3486,80 +3328,158 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3570,74 +3490,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig ) end - def bps_config - end + attr_reader :bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bps_config=(_) - end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3648,70 +3541,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3722,58 +3587,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3781,7 +3636,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3814,7 +3672,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3842,21 +3700,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3868,96 +3716,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3968,74 +3941,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4046,70 +3992,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4120,58 +4038,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4179,7 +4087,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4212,7 +4123,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4247,28 +4158,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -4292,30 +4190,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4339,96 +4222,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -4439,74 +4447,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig ) end - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_config=(_) - end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4517,70 +4498,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4591,58 +4544,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4650,7 +4593,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4683,7 +4629,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4717,28 +4663,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -4762,21 +4695,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4789,163 +4712,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4956,70 +4973,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5030,58 +5019,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5089,7 +5065,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5121,7 +5100,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5148,163 +5127,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) - end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5315,70 +5388,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5389,58 +5434,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5448,7 +5480,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5480,7 +5515,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5507,163 +5542,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5674,70 +5803,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5748,58 +5849,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5807,7 +5895,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5839,7 +5930,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5866,163 +5957,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end + end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6033,70 +6218,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6107,58 +6264,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6166,7 +6310,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6198,7 +6345,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6225,163 +6372,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6392,70 +6633,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6466,58 +6679,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6525,7 +6725,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6557,7 +6760,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6584,163 +6787,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6751,70 +7048,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6825,58 +7094,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6884,7 +7140,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6916,7 +7175,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6943,163 +7202,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7110,70 +7463,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7184,58 +7509,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7243,7 +7555,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7275,7 +7590,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7302,163 +7617,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7469,70 +7878,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7543,58 +7924,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7602,7 +7970,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7634,7 +8005,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7661,163 +8032,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7828,70 +8293,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7902,58 +8339,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7961,7 +8385,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7993,7 +8420,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -8020,163 +8447,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8187,70 +8708,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8261,58 +8754,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8320,7 +8800,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8353,7 +8836,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8379,163 +8862,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8546,70 +9123,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8620,58 +9169,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8679,7 +9215,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8711,7 +9250,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8738,163 +9277,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8905,70 +9538,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8979,58 +9584,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9038,7 +9630,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9070,7 +9665,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -9097,163 +9692,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9264,70 +9953,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9338,58 +9999,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9397,7 +10045,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9429,7 +10080,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9456,163 +10107,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9623,70 +10368,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9697,58 +10414,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9756,7 +10460,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9788,7 +10495,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -9815,163 +10522,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9982,70 +10783,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10056,58 +10829,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10115,7 +10875,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10147,7 +10910,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10174,163 +10937,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10341,70 +11198,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10415,58 +11244,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10474,7 +11290,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10506,7 +11325,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -10533,163 +11352,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10700,70 +11613,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10774,58 +11659,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10833,7 +11705,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10865,7 +11740,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10892,113 +11767,270 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end # 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. - class BillingCycleAlignment < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module BillingCycleAlignment + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol) } + + UNCHANGED = + T.let(:unchanged, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol) + PLAN_CHANGE_DATE = + T.let( + :plan_change_date, + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) + START_OF_MONTH = + T.let( + :start_of_month, + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) - UNCHANGED = :unchanged - PLAN_CHANGE_DATE = :plan_change_date - START_OF_MONTH = :start_of_month + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol]) + end + def values + end + end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -11007,33 +12039,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -11049,12 +12066,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel # The id of the adjustment to remove on the subscription. sig { returns(String) } - def adjustment_id - end - - sig { params(_: String).returns(String) } - def adjustment_id=(_) - end + attr_accessor :adjustment_id sig { params(adjustment_id: String).returns(T.attached_class) } def self.new(adjustment_id:) @@ -11068,21 +12080,11 @@ module Orb class RemovePrice < Orb::BaseModel # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) @@ -11108,45 +12110,17 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The id of the adjustment on the plan to replace in the subscription. sig { returns(String) } - def replaces_adjustment_id - end - - sig { params(_: String).returns(String) } - def replaces_adjustment_id=(_) - end + attr_accessor :replaces_adjustment_id sig do params( adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, @@ -11178,8 +12152,8 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -11196,39 +12170,22 @@ module Orb class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11259,39 +12216,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11322,39 +12262,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11385,48 +12308,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11459,39 +12360,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11519,81 +12403,64 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum] + ) + end + def variants + end + end end end class ReplacePrice < Orb::BaseModel # The id of the price on the plan to replace in the subscription. sig { returns(String) } - def replaces_price_id - end - - sig { params(_: String).returns(String) } - def replaces_price_id=(_) - end + 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)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, + Orb::Util::AnyHash + ) + ) + ) + .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])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The new quantity of the price, if the price is a fixed price. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # the replacement price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # the replacement price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -11629,90 +12496,24 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), + allocation_price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, + Orb::Util::AnyHash + ) + ), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount, Orb::Util::AnyHash)] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), @@ -11720,6 +12521,7 @@ module Orb price: T.nilable( T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, @@ -11813,45 +12615,34 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -11859,72 +12650,97 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11938,7 +12754,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11948,20 +12764,51 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let( + :usage, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + AMOUNT = + T.let( + :amount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union Variants = type_template(:out) do @@ -11998,78 +12845,51 @@ module Orb class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig ) end - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash ) + ) + .void end - def unit_config=(_) - end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12080,70 +12900,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12154,58 +12946,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12213,7 +12995,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12245,7 +13030,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12272,28 +13057,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -12307,158 +13134,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12469,70 +13347,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12543,58 +13393,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12602,7 +13442,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12634,7 +13477,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12661,38 +13504,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :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 sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -12706,158 +13586,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end - - sig { returns(Symbol) } - def model_type - end + attr_writer :matrix_config - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Symbol) } + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12868,70 +13799,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12942,58 +13845,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13001,7 +13894,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13033,7 +13929,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -13060,37 +13956,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -13100,30 +14033,17 @@ module Orb ] ) end - def matrix_values - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13151,21 +14071,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -13185,158 +14095,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13347,70 +14308,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13421,58 +14354,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13480,7 +14403,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13512,7 +14438,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13539,17 +14465,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -13559,30 +14532,17 @@ module Orb T::Array[ Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier ] - ) - end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier - ] - ) - end - def tiers=(_) + ) end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13606,30 +14566,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -13652,158 +14597,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13814,70 +14810,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13888,58 +14856,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13947,7 +14905,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13979,7 +14940,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14006,17 +14967,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -14029,28 +15037,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14074,39 +15069,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -14139,80 +15114,158 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14223,74 +15276,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig ) end - def bps_config - end + attr_reader :bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bps_config=(_) - end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14301,70 +15327,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14375,58 +15373,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14434,7 +15422,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14467,7 +15458,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14495,21 +15486,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -14521,96 +15502,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14621,74 +15727,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14699,70 +15778,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14773,58 +15824,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14832,7 +15873,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14865,7 +15909,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14900,28 +15944,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14945,30 +15976,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -14992,96 +16008,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -15092,74 +16233,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig ) end - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_config=(_) - end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15170,70 +16284,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15244,58 +16330,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15303,7 +16379,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15336,7 +16415,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15370,28 +16449,15 @@ module Orb ] ) end - def tiers - end - - sig do - params( - _: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier - ] - ) - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -15415,21 +16481,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -15442,163 +16498,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15609,70 +16759,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15683,58 +16805,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15742,7 +16851,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15774,7 +16886,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15801,163 +16913,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15968,70 +17174,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16042,58 +17220,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16101,7 +17266,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16133,7 +17301,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16160,163 +17328,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16327,70 +17589,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16401,58 +17635,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16460,7 +17681,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16492,7 +17716,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16519,163 +17743,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16686,70 +18004,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16760,58 +18050,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16819,7 +18096,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16851,7 +18131,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16878,163 +18158,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. - sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17045,70 +18419,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17119,58 +18465,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17178,7 +18511,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17210,7 +18546,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17237,163 +18573,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17404,70 +18834,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17478,58 +18880,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17537,7 +18926,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17569,7 +18961,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17596,163 +18988,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17763,70 +19249,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17837,58 +19295,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17896,7 +19341,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17928,7 +19376,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17955,163 +19403,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18122,70 +19664,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18196,58 +19710,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18255,7 +19756,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18287,7 +19791,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18314,163 +19818,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. - sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + sig { returns(Integer) } + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18481,70 +20079,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18555,58 +20125,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18614,7 +20171,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18646,7 +20206,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18673,163 +20233,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18840,70 +20494,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18914,58 +20540,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18973,7 +20586,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19006,7 +20622,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19032,163 +20648,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19199,70 +20909,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19273,58 +20955,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19332,7 +21001,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19364,7 +21036,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19391,163 +21063,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19558,70 +21324,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19632,58 +21370,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19691,7 +21416,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19723,7 +21451,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19750,163 +21478,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19917,70 +21739,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19991,58 +21785,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20050,7 +21831,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20082,7 +21866,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20109,163 +21893,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20276,70 +22154,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20350,58 +22200,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end - - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20409,7 +22246,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20441,7 +22281,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -20468,163 +22308,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20635,70 +22569,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20709,58 +22615,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20768,7 +22661,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20800,7 +22696,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20827,163 +22723,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20994,70 +22984,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21068,58 +23030,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21127,7 +23076,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21159,7 +23111,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -21186,163 +23138,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -21353,70 +23399,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21427,58 +23445,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::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( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21486,7 +23491,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21518,7 +23526,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -21545,99 +23553,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi index f0f05955..8ef0d50f 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,120 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) - .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +278,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo } ) @@ -419,12 +288,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +301,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +356,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +374,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +444,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +514,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +584,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +661,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +728,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +748,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +772,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +789,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +851,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +914,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +973,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1016,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1067,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1117,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1153,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1199,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1223,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1333,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1353,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1372,28 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index 60e78a95..2a396d38 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -10,28 +10,18 @@ module Orb # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # The date on which the phase change should take effect. If not provided, defaults # to today in the customer's timezone. sig { returns(T.nilable(Date)) } - def effective_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def effective_date=(_) - end + attr_accessor :effective_date sig do params( allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index f0d0c496..c1cf4d2a 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionTriggerPhaseResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,115 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end + attr_accessor :start_date - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) - .returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) - end - def trial_info=(_) + params(trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Util::AnyHash)) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +270,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo } ) @@ -419,12 +280,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +293,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +348,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +366,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +436,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +506,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +576,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +653,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +720,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +740,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +764,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +781,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +843,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +906,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +965,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1008,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1059,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1109,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1145,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1191,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1215,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1325,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1345,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1364,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index 453c72f2..8dba58ba 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index ba37841b..d0c8eb8a 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,129 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +287,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo } ) @@ -419,12 +297,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +310,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +365,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +383,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +453,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +523,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +593,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +670,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +737,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +757,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +781,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +798,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +860,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +923,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +982,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1025,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1076,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1126,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1162,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1208,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1232,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1342,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1362,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1381,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi index 8e24e278..b89bd2d7 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi @@ -8,15 +8,10 @@ module Orb # Price for which the updates should be cleared. Must be a fixed fee. sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig do - params(price_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + params(price_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(price_id:, request_options: {}) diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index 7f4710bd..e904801e 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -4,109 +4,63 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params( - _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] - ) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig do returns( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration ) end - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do params( - _: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration - ) - .returns( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash ) + ) + .void end - def billing_cycle_anchor_configuration=(_) - end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -127,22 +81,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -156,212 +103,159 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig do returns( T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] ) end - def fixed_fee_quantity_schedule - end - - sig do - params( - _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) - .returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + adjustment_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval, + Orb::Util::AnyHash + ) + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + maximum_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval, + Orb::Util::AnyHash + ) + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + minimum_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval, + Orb::Util::AnyHash + ) + ], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval, + Orb::Util::AnyHash + ) + ], + redeemed_coupon: T.nilable( + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, + Orb::Util::AnyHash + ) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -427,7 +321,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo } ) @@ -437,12 +331,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -455,64 +344,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -548,8 +399,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -566,67 +417,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -671,67 +487,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -776,67 +557,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -881,76 +627,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -998,67 +704,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1100,6 +771,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1109,33 +791,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1148,8 +815,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1165,56 +832,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1257,57 +894,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1350,57 +957,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1439,40 +1016,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1491,49 +1059,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1567,49 +1110,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1642,62 +1160,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1710,27 +1198,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition - ] - ) - ) - .returns( - T.nilable( - T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition - ] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1776,97 +1244,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1881,11 +1269,15 @@ module Orb filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1988,28 +1380,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -2023,28 +1400,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2057,24 +1419,36 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) } - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + ACTIVE = + T.let(:active, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + ENDED = + T.let(:ended, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol] + ) + end + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index 19f23250..172dfc61 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index 63f1ba14..fa3c2827 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,206 +99,134 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params( - _: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] - ) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + adjustment_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval, + Orb::Util::AnyHash + ) + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -411,7 +292,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo } ) @@ -421,12 +302,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -439,64 +315,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -532,8 +370,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -550,67 +388,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -655,67 +458,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -760,67 +528,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -865,76 +598,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -982,67 +675,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1084,6 +742,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1093,33 +762,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1132,8 +786,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1149,56 +803,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1241,57 +865,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1334,57 +928,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1423,40 +987,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1475,49 +1030,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1551,49 +1081,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1626,62 +1131,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1692,23 +1167,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1754,97 +1213,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1858,10 +1237,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1962,28 +1347,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1997,28 +1367,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2031,24 +1386,34 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = + T.let(:active, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + ENDED = + T.let(:ended, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol]) + end + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi index f368fa4b..7c8971de 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -8,62 +8,40 @@ module Orb # Price for which the quantity should be updated. Must be a fixed fee. sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # 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. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # 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(Symbol)) } - def change_option - end + sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol)) } + attr_reader :change_option - sig { params(_: Symbol).returns(Symbol) } - def change_option=(_) - end + sig { params(change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol).void } + attr_writer :change_option # The date that the quantity change should take effect, localized to the # customer's timezone. Ifthis parameter is not passed in, the quantity change is # effective according to `change_option`. sig { returns(T.nilable(Date)) } - def effective_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def effective_date=(_) - end + attr_accessor :effective_date sig do params( price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +62,7 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), request_options: Orb::RequestOptions } @@ -96,14 +74,32 @@ 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`. - class ChangeOption < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - IMMEDIATE = :immediate - UPCOMING_INVOICE = :upcoming_invoice - EFFECTIVE_DATE = :effective_date + module ChangeOption + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) } + + IMMEDIATE = + T.let(:immediate, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + UPCOMING_INVOICE = + T.let( + :upcoming_invoice, + Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + ) + EFFECTIVE_DATE = + T.let(:effective_date, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 9aa1a060..eeb1d649 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,129 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +287,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo } ) @@ -419,12 +297,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +310,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +365,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +383,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +453,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +523,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +593,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +670,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +737,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +757,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +781,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +798,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +860,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +923,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +982,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1025,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1076,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1126,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1162,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1208,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1232,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1342,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1362,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1381,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 32083d1f..00fae942 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -10,59 +10,31 @@ module Orb # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # 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`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig do params( @@ -71,7 +43,7 @@ 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, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index 8b58fbd3..46c83d47 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -8,29 +8,22 @@ module Orb # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - sig { returns(T.any(Time, Symbol)) } - def trial_end_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def trial_end_date=(_) - end + sig { returns(T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)) } + attr_accessor :trial_end_date # If true, shifts subsequent price and adjustment intervals (preserving their # durations, but adjusting their absolute dates). sig { returns(T.nilable(T::Boolean)) } - def shift - end + attr_reader :shift - sig { params(_: T::Boolean).returns(T::Boolean) } - def shift=(_) - end + sig { params(shift: T::Boolean).void } + attr_writer :shift sig do params( - trial_end_date: T.any(Time, Symbol), + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), shift: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -39,28 +32,35 @@ module Orb sig do override - .returns({ - trial_end_date: T.any(Time, Symbol), - shift: T::Boolean, - request_options: Orb::RequestOptions - }) + .returns( + { + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), + shift: T::Boolean, + request_options: Orb::RequestOptions + } + ) end def to_hash end # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - class TrialEndDate < Orb::Union - abstract! + module TrialEndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = + type_template(:out) { {fixed: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)} } - class UnionMember1 < Orb::Enum - abstract! + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) - IMMEDIATE = :immediate + class << self + sig { override.returns([Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol]) } + def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index b3cfe754..344d1fc2 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionUpdateTrialResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # 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. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # 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 # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .returns( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # 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 # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval ) ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + status: Orb::Models::SubscriptionUpdateTrialResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .returns( - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - end - def adjustment=(_) - end + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,8 +345,8 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union Variants = type_template(:out) do @@ -548,67 +363,32 @@ module Orb class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -653,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -758,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -863,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -980,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1082,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + ) + end + def variants + end + end end end @@ -1091,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # 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.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1130,8 +761,8 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union Variants = type_template(:out) do @@ -1147,56 +778,26 @@ module Orb class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1142,7 @@ module Orb ) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - .returns( - T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1188,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .returns( - T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - end - def price=(_) - end + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # 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 @@ -1856,10 +1212,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1322,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + 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:) @@ -1995,28 +1342,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1361,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + 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 = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index c40d33c9..77dee42c 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -2,8 +2,8 @@ module Orb module Models - class SubscriptionUsage < Orb::Union - abstract! + module SubscriptionUsage + extend Orb::Union Variants = type_template(:out) do @@ -17,18 +17,12 @@ module Orb class UngroupedSubscriptionUsage < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) - .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) - end - def data=(_) - end + attr_accessor :data sig do - params(data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) + params( + data: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(data:) @@ -40,40 +34,33 @@ module Orb class Data < Orb::BaseModel sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) - .returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) - end - def billable_metric=(_) + params( + billable_metric: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billable_metric sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) } - def usage - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) - .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) - end - def usage=(_) - end + attr_accessor :usage - sig { returns(Symbol) } - def view_mode - end - - sig { params(_: Symbol).returns(Symbol) } - def view_mode=(_) - end + sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + attr_accessor :view_mode sig do params( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + billable_metric: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + Orb::Util::AnyHash + ), + usage: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage, Orb::Util::AnyHash)], + view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::OrSymbol ) .returns(T.attached_class) end @@ -86,7 +73,7 @@ module Orb { billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol } ) end @@ -95,20 +82,10 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -121,28 +98,13 @@ module Orb class Usage < Orb::BaseModel sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) @@ -155,41 +117,50 @@ module Orb end end - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } - PERIODIC = :periodic - CUMULATIVE = :cumulative + PERIODIC = + T.let(:periodic, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let( + :cumulative, + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol] + ) + end + def values + end + end end end end class GroupedSubscriptionUsage < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) - end - def data=(_) - end + attr_accessor :data sig { returns(T.nilable(Orb::Models::PaginationMetadata)) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: T.nilable(Orb::Models::PaginationMetadata)).returns(T.nilable(Orb::Models::PaginationMetadata)) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash))).void } + attr_writer :pagination_metadata sig do params( - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) + data: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data, Orb::Util::AnyHash)], + pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -210,52 +181,39 @@ module Orb class Data < Orb::BaseModel sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) - .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) - end - def billable_metric=(_) + params( + billable_metric: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, Orb::Util::AnyHash) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) } - def metric_group - end + attr_reader :metric_group sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) - .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) - end - def metric_group=(_) + params( + metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Util::AnyHash) + ) + .void end + attr_writer :metric_group sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) } - def usage - end + attr_accessor :usage - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) - end - def usage=(_) - end - - sig { returns(Symbol) } - def view_mode - end - - sig { params(_: Symbol).returns(Symbol) } - def view_mode=(_) - end + sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + attr_accessor :view_mode sig do params( - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + billable_metric: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, Orb::Util::AnyHash), + metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Util::AnyHash), + usage: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage, Orb::Util::AnyHash)], + view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::OrSymbol ) .returns(T.attached_class) end @@ -269,7 +227,7 @@ module Orb billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol } ) end @@ -278,20 +236,10 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -304,20 +252,10 @@ module Orb class MetricGroup < Orb::BaseModel sig { returns(String) } - def property_key - end - - sig { params(_: String).returns(String) } - def property_key=(_) - end + attr_accessor :property_key sig { returns(String) } - def property_value - end - - sig { params(_: String).returns(String) } - def property_value=(_) - end + attr_accessor :property_value sig { params(property_key: String, property_value: String).returns(T.attached_class) } def self.new(property_key:, property_value:) @@ -330,28 +268,13 @@ module Orb class Usage < Orb::BaseModel sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) @@ -364,16 +287,41 @@ module Orb end end - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = + T.let(:periodic, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let(:cumulative, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol]) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscriptions.rbi b/rbi/lib/orb/models/subscriptions.rbi index 8aad6c17..a91bc205 100644 --- a/rbi/lib/orb/models/subscriptions.rbi +++ b/rbi/lib/orb/models/subscriptions.rbi @@ -4,23 +4,19 @@ module Orb module Models class SubscriptionsAPI < Orb::BaseModel sig { returns(T::Array[Orb::Models::Subscription]) } - def data - end - - sig { params(_: T::Array[Orb::Models::Subscription]).returns(T::Array[Orb::Models::Subscription]) } - def data=(_) - end + attr_accessor :data sig { returns(Orb::Models::PaginationMetadata) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: Orb::Models::PaginationMetadata).returns(Orb::Models::PaginationMetadata) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)).void } + attr_writer :pagination_metadata sig do - params(data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata) + params( + data: T::Array[T.any(Orb::Models::Subscription, Orb::Util::AnyHash)], + pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash) + ) .returns(T.attached_class) end def self.new(data:, pagination_metadata:) diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index c6826ab9..e9e87d54 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/top_level_ping_response.rbi b/rbi/lib/orb/models/top_level_ping_response.rbi index 2a04fd69..f9b5f3d1 100644 --- a/rbi/lib/orb/models/top_level_ping_response.rbi +++ b/rbi/lib/orb/models/top_level_ping_response.rbi @@ -4,12 +4,7 @@ module Orb module Models class TopLevelPingResponse < Orb::BaseModel sig { returns(String) } - def response - end - - sig { params(_: String).returns(String) } - def response=(_) - end + attr_accessor :response sig { params(response: String).returns(T.attached_class) } def self.new(response:) diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index 2b1804e3..a769483a 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -6,51 +6,26 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end + attr_accessor :applies_to_price_ids - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::TrialDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # Only available if discount_type is `trial` sig { returns(T.nilable(String)) } - def trial_amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def trial_amount_discount=(_) - end + attr_accessor :trial_amount_discount # Only available if discount_type is `trial` sig { returns(T.nilable(Float)) } - def trial_percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def trial_percentage_discount=(_) - end + attr_accessor :trial_percentage_discount sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) @@ -71,7 +46,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) @@ -81,12 +56,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::TrialDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + TRIAL = T.let(:trial, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) - TRIAL = :trial + class << self + sig { override.returns(T::Array[Orb::Models::TrialDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/usage_discount.rbi b/rbi/lib/orb/models/usage_discount.rbi index 1226c599..816e586a 100644 --- a/rbi/lib/orb/models/usage_discount.rbi +++ b/rbi/lib/orb/models/usage_discount.rbi @@ -6,43 +6,23 @@ module Orb # 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]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::UsageDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, usage_discount: Float, reason: T.nilable(String) ) @@ -56,7 +36,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, usage_discount: Float, reason: T.nilable(String) } @@ -65,12 +45,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::UsageDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE = T.let(:usage, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) - USAGE = :usage + class << self + sig { override.returns(T::Array[Orb::Models::UsageDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index a5bb7ac1..8b84f232 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -7,20 +7,10 @@ module Orb Elem = type_member sig { returns(T.nilable(T::Array[Elem])) } - def data - end - - sig { params(_: T.nilable(T::Array[Elem])).returns(T.nilable(T::Array[Elem])) } - def data=(_) - end + attr_accessor :data sig { returns(PaginationMetadata) } - def pagination_metadata - end - - sig { params(_: PaginationMetadata).returns(PaginationMetadata) } - def pagination_metadata=(_) - end + attr_accessor :pagination_metadata sig { returns(String) } def inspect @@ -28,20 +18,10 @@ module Orb class PaginationMetadata < Orb::BaseModel sig { returns(T::Boolean) } - def has_more - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def has_more=(_) - end + attr_accessor :has_more sig { returns(T.nilable(String)) } - def next_cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def next_cursor=(_) - end + 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:) diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index 37e6f48a..6982a9e3 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -4,21 +4,13 @@ module Orb # @api private module RequestParameters # Options to specify HTTP behaviour for this request. - sig { returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) } - def request_options - end - - sig do - params(_: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - .returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - end - def request_options=(_) - end + sig { returns(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) } + attr_accessor :request_options # @api private module Converter # @api private - sig { params(params: T.anything).returns([T.anything, T::Hash[Symbol, T.anything]]) } + sig { params(params: T.anything).returns([T.anything, Orb::Util::AnyHash]) } def dump_request(params) end end @@ -38,69 +30,33 @@ module Orb # Idempotency key to send with request and all associated retries. Will only be # sent for write requests. sig { returns(T.nilable(String)) } - def idempotency_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # 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))])) } - def extra_query - end - - sig do - params(_: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) - .returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) - end - def extra_query=(_) - end + attr_accessor :extra_query # Extra headers to send with the request. These are `.merged`’d into any # `extra_headers` given at the client level. sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } - def extra_headers - end - - sig do - params(_: T.nilable(T::Hash[String, T.nilable(String)])) - .returns(T.nilable(T::Hash[String, T.nilable(String)])) - end - def extra_headers=(_) - end + attr_accessor :extra_headers # Extra data to send with the request. These are deep merged into any data # generated as part of the normal request. - sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } - def extra_body - end - - sig { params(_: T.nilable(T::Hash[Symbol, T.anything])).returns(T.nilable(T::Hash[Symbol, T.anything])) } - def extra_body=(_) - end + sig { returns(T.nilable(T.anything)) } + attr_accessor :extra_body # Maximum number of retries to attempt after a failed initial request. sig { returns(T.nilable(Integer)) } - def max_retries - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_retries=(_) - end + attr_accessor :max_retries # Request timeout in seconds. sig { returns(T.nilable(Float)) } - def timeout - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def timeout=(_) - end + attr_accessor :timeout # Returns a new instance of RequestOptions. - sig { params(values: T::Hash[Symbol, T.anything]).returns(T.attached_class) } + sig { params(values: Orb::Util::AnyHash).returns(T.attached_class) } def self.new(values = {}) end end diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index d2293b52..4adf9589 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -5,10 +5,7 @@ module Orb class Alerts # This endpoint retrieves an alert by its ID. sig do - params( - alert_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(alert_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Alert) end def retrieve(alert_id, request_options: {}) @@ -18,8 +15,8 @@ module Orb sig do params( alert_configuration_id: String, - thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Util::AnyHash)], + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -53,7 +50,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Alert]) end @@ -89,9 +86,9 @@ module Orb params( customer_id: String, currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Util::AnyHash)]), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -119,9 +116,11 @@ module Orb params( external_customer_id: String, currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: T.nilable( + T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Util::AnyHash)] + ), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -151,10 +150,10 @@ module Orb sig do params( subscription_id: String, - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Util::AnyHash)], + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -177,7 +176,7 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -196,7 +195,7 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index f4e13bb5..34810f16 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Coupons sig { returns(Orb::Resources::Coupons::Subscriptions) } - def subscriptions - end + attr_reader :subscriptions # This endpoint allows the creation of coupons, which can then be redeemed at # subscription creation or plan change. @@ -13,12 +12,13 @@ module Orb params( discount: T.any( Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Coupon) end @@ -48,7 +48,7 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Coupon]) end @@ -71,10 +71,7 @@ module Orb # 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 do - params( - coupon_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Coupon) end def archive(coupon_id, request_options: {}) @@ -84,10 +81,7 @@ module Orb # code, use the [List coupons](list-coupons) endpoint with the redemption_code # parameter. sig do - params( - coupon_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Coupon) end def fetch(coupon_id, request_options: {}) diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index b15f851f..d7caad01 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -13,7 +13,7 @@ module Orb coupon_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Subscription]) end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index c64b7bb5..bdffc687 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -7,10 +7,10 @@ module Orb # [`Credit Note`](/invoicing/credit-notes). sig do params( - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Util::AnyHash)], memo: T.nilable(String), - reason: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::CreditNote) end @@ -35,7 +35,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::CreditNote]) end @@ -58,7 +58,7 @@ module Orb sig do params( credit_note_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::CreditNote) end diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index ac6620fc..fd2bef5d 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -4,16 +4,13 @@ module Orb module Resources class Customers sig { returns(Orb::Resources::Customers::Costs) } - def costs - end + attr_reader :costs sig { returns(Orb::Resources::Customers::Credits) } - def credits - end + attr_reader :credits sig { returns(Orb::Resources::Customers::BalanceTransactions) } - def balance_transactions - end + attr_reader :balance_transactions # This operation is used to create an Orb customer, who is party to the core # billing relationship. See [Customer](/core-concepts##customer) for an overview @@ -31,28 +28,29 @@ module Orb params( email: String, name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash)), timezone: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -218,29 +216,30 @@ module Orb sig do params( customer_id: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)), 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), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash)), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -410,7 +409,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customer]) end @@ -446,7 +445,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -462,7 +461,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -477,7 +476,7 @@ module Orb sig do params( external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -493,7 +492,7 @@ module Orb sig do params( external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -509,7 +508,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -523,29 +522,34 @@ module Orb sig do params( id: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)), 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), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + 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), + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash)), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index 92b5541b..6669f879 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -10,9 +10,9 @@ module Orb params( customer_id: String, amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end @@ -63,7 +63,7 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse]) end diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index 360b4fae..42a33027 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -127,8 +127,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::CostListResponse) end @@ -272,8 +272,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::CostListByExternalIDResponse) end diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index a20dd1a7..0242a83e 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -5,12 +5,10 @@ module Orb class Customers class Credits sig { returns(Orb::Resources::Customers::Credits::Ledger) } - def ledger - end + attr_reader :ledger sig { returns(Orb::Resources::Customers::Credits::TopUps) } - def top_ups - end + attr_reader :top_ups # Returns a paginated list of unexpired, non-zero credit blocks for a customer. # @@ -26,7 +24,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) end @@ -60,7 +58,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) end diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index 8df68064..759b9b53 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -95,11 +95,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ @@ -249,18 +249,20 @@ module Orb params( customer_id: String, amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::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(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -430,18 +432,23 @@ module Orb params( external_customer_id: String, amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::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(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -587,11 +594,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + 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: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index d7aa4c80..7501a295 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -17,13 +17,13 @@ module Orb customer_id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::Credits::TopUpCreateResponse) end @@ -59,7 +59,7 @@ module Orb customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end @@ -80,7 +80,7 @@ module Orb params( top_up_id: String, customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -99,13 +99,13 @@ module Orb external_customer_id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) end @@ -141,7 +141,7 @@ module Orb params( top_up_id: String, external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -154,7 +154,7 @@ module Orb external_customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index e39ecae2..3c8f325f 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -4,8 +4,7 @@ module Orb module Resources class DimensionalPriceGroups sig { returns(Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID) } - def external_dimensional_price_group_id - end + attr_reader :external_dimensional_price_group_id # 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 @@ -22,7 +21,7 @@ module Orb name: String, external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end @@ -44,7 +43,7 @@ module Orb sig do params( dimensional_price_group_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end @@ -56,7 +55,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) end diff --git a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi index e2fb7899..3151880d 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi @@ -8,7 +8,7 @@ module Orb sig do params( external_dimensional_price_group_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index d3cb5876..e3b90f09 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -4,12 +4,10 @@ module Orb module Resources class Events sig { returns(Orb::Resources::Events::Backfills) } - def backfills - end + attr_reader :backfills sig { returns(Orb::Resources::Events::Volume) } - def volume - end + attr_reader :volume # This endpoint is used to amend a single usage event with a given `event_id`. # `event_id` refers to the `idempotency_key` passed in during ingestion. The event @@ -64,7 +62,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventUpdateResponse) end @@ -129,10 +127,7 @@ module Orb # a 100 day period. For higher volume updates, consider using the # [event backfill](create-backfill) endpoint. sig do - params( - event_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(event_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::EventDeprecateResponse) end def deprecate(event_id, request_options: {}) @@ -344,10 +339,10 @@ module Orb # ``` sig do params( - events: T::Array[Orb::Models::EventIngestParams::Event], + events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Util::AnyHash)], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventIngestResponse) end @@ -384,7 +379,7 @@ module Orb event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventSearchResponse) end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index badd5cf0..f1aef9fe 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -50,7 +50,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillCreateResponse) end @@ -95,7 +95,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) end @@ -116,7 +116,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillCloseResponse) end @@ -127,7 +127,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillFetchResponse) end @@ -144,7 +144,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillRevertResponse) end diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index 923fef33..3cf15169 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -23,7 +23,7 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::EventVolumes) end diff --git a/rbi/lib/orb/resources/invoice_line_items.rbi b/rbi/lib/orb/resources/invoice_line_items.rbi index 62402c02..f57b326f 100644 --- a/rbi/lib/orb/resources/invoice_line_items.rbi +++ b/rbi/lib/orb/resources/invoice_line_items.rbi @@ -13,7 +13,7 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::InvoiceLineItemCreateResponse) end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index 605cf98f..18db847d 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -8,12 +8,13 @@ module Orb params( currency: String, invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Util::AnyHash)], net_terms: Integer, customer_id: T.nilable(String), discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -23,7 +24,7 @@ module Orb memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -70,7 +71,7 @@ module Orb params( invoice_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -104,7 +105,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + 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), @@ -116,9 +117,9 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Invoice]) end @@ -156,10 +157,7 @@ module Orb # This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an # identifier. sig do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def fetch(invoice_id, request_options: {}) @@ -171,7 +169,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::InvoiceFetchUpcomingResponse) end @@ -188,7 +186,7 @@ module Orb params( invoice_id: String, synchronous: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -212,7 +210,7 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -231,10 +229,7 @@ module Orb # 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 do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def pay(invoice_id, request_options: {}) @@ -252,10 +247,7 @@ module Orb # paid, the credit block will be voided. If the invoice was created due to a # top-up, the top-up will be disabled. sig do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def void(invoice_id, request_options: {}) diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index 41af89c2..bdce9a5e 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -5,15 +5,7 @@ module Orb class Items # This endpoint is used to create an [Item](/core-concepts#item). sig do - params( - name: String, - request_options: T.nilable( - T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ) - ) + params(name: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Item) end def create( @@ -27,9 +19,9 @@ module Orb sig do params( item_id: String, - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), + external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Util::AnyHash)]), name: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Item) end @@ -42,7 +34,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Item]) end @@ -58,10 +50,7 @@ module Orb # This endpoint returns an item identified by its item_id. sig do - params( - item_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(item_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Item) end def fetch(item_id, request_options: {}) diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index ad1f72b1..1ac63c15 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -13,7 +13,7 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::BillableMetric) end @@ -41,7 +41,7 @@ module Orb params( metric_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::BillableMetric) end @@ -66,7 +66,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::BillableMetric]) end @@ -87,10 +87,7 @@ module Orb # This endpoint is used to list [metrics](/core-concepts#metric). It returns # information about the metrics including its name, description, and item. sig do - params( - metric_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(metric_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::BillableMetric) end def fetch(metric_id, request_options: {}) diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index 06d4302f..92feb998 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Plans sig { returns(Orb::Resources::Plans::ExternalPlanID) } - def external_plan_id - end + attr_reader :external_plan_id # This endpoint allows creation of plans including their prices. sig do @@ -15,6 +14,7 @@ module Orb prices: T::Array[ T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Util::AnyHash, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, @@ -45,8 +45,8 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Symbol, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + status: Orb::Models::PlanCreateParams::Status::OrSymbol, + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -85,7 +85,7 @@ module Orb plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -116,8 +116,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + status: Orb::Models::PlanListParams::Status::OrSymbol, + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Plan]) end @@ -155,10 +155,7 @@ 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 do - params( - plan_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(plan_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Plan) end def fetch(plan_id, request_options: {}) diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index 8e94ff53..a1cdc66f 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -13,7 +13,7 @@ module Orb other_external_plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -50,7 +50,7 @@ module Orb sig do params( external_plan_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index a6e8db97..087e9385 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Prices sig { returns(Orb::Resources::Prices::ExternalPriceID) } - def external_price_id - end + attr_reader :external_price_id # This endpoint is used to create a [price](/product-catalog/price-configuration). # A price created using this endpoint is always an add-on, meaning that it’s not @@ -19,20 +18,20 @@ module Orb # specification of different price model configurations possible in this endpoint. sig do params( - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, 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: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash), + package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash), + tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash), + tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash), 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], @@ -54,14 +53,14 @@ module Orb 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(Orb::Models::PriceCreateParams::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -170,7 +169,7 @@ module Orb params( price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -221,7 +220,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ @@ -298,7 +297,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::PriceEvaluateResponse) end @@ -326,10 +325,7 @@ module Orb # This endpoint returns a price given an identifier. sig do - params( - price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(price_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns( T.any( Orb::Models::Price::UnitPrice, diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index 373a567a..0d23469d 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -11,7 +11,7 @@ module Orb params( external_price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -62,7 +62,7 @@ module Orb sig do params( external_price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 97dfe8e8..8b154e07 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -261,19 +261,21 @@ module Orb # $10.00 for a subscription that invoices in USD. sig do params( - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Util::AnyHash)]), + add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Util::AnyHash)]), 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), + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), customer_id: T.nilable(String), default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), + external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -285,14 +287,14 @@ 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[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]), + remove_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Util::AnyHash)]), + remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Util::AnyHash)]), + replace_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Util::AnyHash)]), + replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Util::AnyHash)]), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionCreateResponse) end @@ -394,7 +396,7 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Subscription) end @@ -443,8 +445,8 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Subscription]) end @@ -529,10 +531,10 @@ module Orb sig do params( subscription_id: String, - cancel_option: Symbol, + cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionCancelResponse) end @@ -556,7 +558,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Subscription) end @@ -579,8 +581,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionFetchCostsResponse) end @@ -614,7 +616,7 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse]) end @@ -833,14 +835,14 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + 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(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -951,12 +953,12 @@ module Orb sig do params( subscription_id: String, - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)], + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)], 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: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)], + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)], + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionPriceIntervalsResponse) end @@ -1164,13 +1166,22 @@ module Orb sig do params( subscription_id: String, - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Util::AnyHash)] + ), + add_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Util::AnyHash)] + ), align_billing_with_plan_change_date: T.nilable(T::Boolean), auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Symbol), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), + billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -1184,13 +1195,21 @@ 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[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]), + remove_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Util::AnyHash)] + ), + remove_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Util::AnyHash)] + ), + replace_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Util::AnyHash)] + ), + replace_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Util::AnyHash)] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) end @@ -1289,7 +1308,7 @@ module Orb subscription_id: String, allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionTriggerPhaseResponse) end @@ -1315,7 +1334,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) end @@ -1331,7 +1350,7 @@ module Orb params( subscription_id: String, price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) end @@ -1348,7 +1367,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) end @@ -1375,9 +1394,9 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) end @@ -1423,9 +1442,9 @@ module Orb sig do params( subscription_id: String, - trial_end_date: T.any(Time, Symbol), + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), shift: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUpdateTrialResponse) end diff --git a/rbi/lib/orb/resources/top_level.rbi b/rbi/lib/orb/resources/top_level.rbi index 87cb277d..5e888789 100644 --- a/rbi/lib/orb/resources/top_level.rbi +++ b/rbi/lib/orb/resources/top_level.rbi @@ -10,7 +10,7 @@ module Orb # # This API does not have any side-effects or return any Orb resources. sig do - params(request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]))) + params(request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::TopLevelPingResponse) end def ping(request_options: {}) diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index 09f440b8..690f8209 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -3,6 +3,10 @@ module Orb # @api private module Util + # Due to the current WIP status of Shapes support in Sorbet, types referencing + # this alias might be refined in the future. + AnyHash = T.type_alias { T::Hash[Symbol, T.anything] } + # @api private sig { returns(Float) } def self.monotonic_secs @@ -85,7 +89,7 @@ module Orb # @api private sig do params( - data: T.any(T::Hash[Symbol, T.anything], T::Array[T.anything], T.anything), + data: T.any(Orb::Util::AnyHash, T::Array[T.anything], T.anything), pick: T.nilable(T.any(Symbol, Integer, T::Array[T.any(Symbol, Integer)])), sentinel: T.nilable(T.anything), blk: T.nilable(T.proc.returns(T.anything)) diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs index 6e2084aa..81ce6a23 100644 --- a/sig/orb/base_model.rbs +++ b/sig/orb/base_model.rbs @@ -59,28 +59,28 @@ module Orb ) -> ([true, top, nil] | [false, bool, Integer]) end - class Enum - extend Orb::Converter + module Enum + include Orb::Converter def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] private def self.finalize!: -> void - def self.===: (top other) -> bool + def ===: (top other) -> bool - def self.==: (top other) -> bool + def ==: (top other) -> bool - def self.coerce: (String | Symbol | top value) -> (Symbol | top) + def coerce: (String | Symbol | top value) -> (Symbol | top) - def self.dump: (Symbol | top value) -> (Symbol | top) + def dump: (Symbol | top value) -> (Symbol | top) - def self.try_strict_coerce: ( + def try_strict_coerce: ( top value ) -> ([true, top, nil] | [false, bool, Integer]) end - class Union - extend Orb::Converter + module Union + include Orb::Converter private def self.known_variants: -> ::Array[[Symbol?, (^-> Orb::Converter::input)]] @@ -102,15 +102,15 @@ module Orb private def self.resolve_variant: (top value) -> Orb::Converter::input? - def self.===: (top other) -> bool + def ===: (top other) -> bool - def self.==: (top other) -> bool + def ==: (top other) -> bool - def self.coerce: (top value) -> top + def coerce: (top value) -> top - def self.dump: (top value) -> top + def dump: (top value) -> top - def self.try_strict_coerce: ( + def try_strict_coerce: ( top value ) -> ([true, top, nil] | [false, bool, Integer]) end diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 27172e3b..6a648a12 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -126,14 +126,16 @@ module Orb | :usage_exceeded | :cost_exceeded - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered USAGE_EXCEEDED: :usage_exceeded COST_EXCEEDED: :cost_exceeded - def self.values: -> ::Array[Orb::Models::Alert::type_] + def self?.values: -> ::Array[Orb::Models::Alert::type_] end end end diff --git a/sig/orb/models/alert_create_for_customer_params.rbs b/sig/orb/models/alert_create_for_customer_params.rbs index 34ea4d51..a9d84f24 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -32,12 +32,14 @@ module Orb | :credit_balance_dropped | :credit_balance_recovered - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> ::Array[Orb::Models::AlertCreateForCustomerParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForCustomerParams::type_] end type threshold = { value: Float } diff --git a/sig/orb/models/alert_create_for_external_customer_params.rbs b/sig/orb/models/alert_create_for_external_customer_params.rbs index c0b2bbe1..4aa3ef4b 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -32,12 +32,14 @@ module Orb | :credit_balance_dropped | :credit_balance_recovered - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> ::Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] end type threshold = { value: Float } diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index 70d31ce3..3dfc5ac3 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -39,11 +39,13 @@ module Orb type type_ = :usage_exceeded | :cost_exceeded - class Type < Orb::Enum + module Type + extend Orb::Enum + USAGE_EXCEEDED: :usage_exceeded COST_EXCEEDED: :cost_exceeded - def self.values: -> ::Array[Orb::Models::AlertCreateForSubscriptionParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForSubscriptionParams::type_] end end end diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 32c27d33..cd3aa286 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -28,10 +28,12 @@ module Orb type discount_type = :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] end end end diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index 6541c7be..cc4e31d3 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -36,12 +36,14 @@ module Orb type status = :active | :draft | :archived - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active DRAFT: :draft ARCHIVED: :archived - def self.values: -> ::Array[Orb::Models::BillableMetric::status] + def self?.values: -> ::Array[Orb::Models::BillableMetric::status] end end end diff --git a/sig/orb/models/billing_cycle_relative_date.rbs b/sig/orb/models/billing_cycle_relative_date.rbs index fb4c5ff9..d41a3048 100644 --- a/sig/orb/models/billing_cycle_relative_date.rbs +++ b/sig/orb/models/billing_cycle_relative_date.rbs @@ -2,11 +2,13 @@ module Orb module Models type billing_cycle_relative_date = :start_of_term | :end_of_term - class BillingCycleRelativeDate < Orb::Enum + module BillingCycleRelativeDate + extend Orb::Enum + START_OF_TERM: :start_of_term END_OF_TERM: :end_of_term - def self.values: -> ::Array[Orb::Models::billing_cycle_relative_date] + def self?.values: -> ::Array[Orb::Models::billing_cycle_relative_date] end end end diff --git a/sig/orb/models/coupon.rbs b/sig/orb/models/coupon.rbs index 25b98546..e83943f8 100644 --- a/sig/orb/models/coupon.rbs +++ b/sig/orb/models/coupon.rbs @@ -41,8 +41,10 @@ module Orb type discount = Orb::Models::PercentageDiscount | Orb::Models::AmountDiscount - class Discount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] + module Discount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] end end end diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index 90eedbf5..a37c51f9 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -35,7 +35,9 @@ module Orb Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount | Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - class Discount < Orb::Union + module Discount + extend Orb::Union + type new_coupon_percentage_discount = { discount_type: :percentage, percentage_discount: Float } @@ -68,7 +70,7 @@ module Orb def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount end - def self.variants: -> [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] + def self?.variants: -> [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] end end end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 9d852deb..e99fd476 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -199,11 +199,13 @@ module Orb type discount_type = :percentage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] end end end @@ -240,10 +242,12 @@ module Orb type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] end type applies_to_price = { id: String, name: String } @@ -262,22 +266,26 @@ module Orb type reason = :Duplicate | :Fraudulent | :"Order change" | :"Product unsatisfactory" - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE: :Duplicate FRAUDULENT: :Fraudulent ORDER_CHANGE: :"Order change" PRODUCT_UNSATISFACTORY: :"Product unsatisfactory" - def self.values: -> ::Array[Orb::Models::CreditNote::reason] + def self?.values: -> ::Array[Orb::Models::CreditNote::reason] end type type_ = :refund | :adjustment - class Type < Orb::Enum + module Type + extend Orb::Enum + REFUND: :refund ADJUSTMENT: :adjustment - def self.values: -> ::Array[Orb::Models::CreditNote::type_] + def self?.values: -> ::Array[Orb::Models::CreditNote::type_] end type discount = @@ -312,10 +320,12 @@ module Orb type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] end type applies_to_price = { id: String, name: String } diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index 4ecaa2f1..10226ac9 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -42,13 +42,15 @@ module Orb type reason = :duplicate | :fraudulent | :order_change | :product_unsatisfactory - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE: :duplicate FRAUDULENT: :fraudulent ORDER_CHANGE: :order_change PRODUCT_UNSATISFACTORY: :product_unsatisfactory - def self.values: -> ::Array[Orb::Models::CreditNoteCreateParams::reason] + def self?.values: -> ::Array[Orb::Models::CreditNoteCreateParams::reason] end end end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 9ee9f350..0a96610d 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -179,14 +179,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::Customer::payment_provider] + def self?.values: -> ::Array[Orb::Models::Customer::payment_provider] end type shipping_address = @@ -326,7 +328,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -406,7 +410,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::Customer::TaxID::country] + def self?.values: -> ::Array[Orb::Models::Customer::TaxID::country] end type type_ = @@ -482,7 +486,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -555,7 +561,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::Customer::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::Customer::TaxID::type_] end end @@ -597,11 +603,13 @@ module Orb type provider_type = :quickbooks | :netsuite - class ProviderType < Orb::Enum + module ProviderType + extend Orb::Enum + QUICKBOOKS: :quickbooks NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] + def self?.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] end end end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index bacc378f..8d80f0a4 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -178,14 +178,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -237,7 +239,9 @@ module Orb Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -274,7 +278,7 @@ module Orb def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -379,7 +383,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -459,7 +465,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] end type type_ = @@ -535,7 +541,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -608,7 +616,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index f310f150..8f92fb9f 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -174,14 +174,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -233,7 +235,9 @@ module Orb Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -270,7 +274,7 @@ module Orb def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -375,7 +379,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -455,7 +461,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] end type type_ = @@ -531,7 +537,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -604,7 +612,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index c7d59f88..f161e0a9 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -174,14 +174,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -233,7 +235,9 @@ module Orb Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -270,7 +274,7 @@ module Orb def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -375,7 +379,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -455,7 +461,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] end type type_ = @@ -531,7 +537,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -604,7 +612,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index 725e32e7..48e39f0b 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -30,11 +30,13 @@ module Orb type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index f177c26f..438b9bb8 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -62,7 +62,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -73,7 +75,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] end type credit_note = { id: String } @@ -98,11 +100,13 @@ module Orb type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 0205d846..2379a132 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -62,7 +62,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -73,7 +75,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] end type credit_note = { id: String } @@ -98,11 +100,13 @@ module Orb type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] end end end diff --git a/sig/orb/models/customers/cost_list_by_external_id_params.rbs b/sig/orb/models/customers/cost_list_by_external_id_params.rbs index 4ddf2a88..7dc5ae55 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 @@ -34,11 +34,13 @@ module Orb type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] + def self?.values: -> ::Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] end end end diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 72d86785..85887448 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -34,11 +34,13 @@ module Orb type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::Customers::CostListParams::view_mode] + def self?.values: -> ::Array[Orb::Models::Customers::CostListParams::view_mode] end end end diff --git a/sig/orb/models/customers/credit_list_by_external_id_response.rbs b/sig/orb/models/customers/credit_list_by_external_id_response.rbs index bc2c8e3e..594099da 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 @@ -41,11 +41,13 @@ module Orb type status = :active | :pending_payment - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] + def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] end end end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index 8f0390f5..c9e19c99 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -41,11 +41,13 @@ module Orb type status = :active | :pending_payment - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status] + def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs index ccdc89d5..b7b7e299 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 @@ -67,10 +67,12 @@ module Orb type entry_type = :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] end type invoice_settings = @@ -104,10 +106,12 @@ module Orb type void_reason = :refund - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND: :refund - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs index e31d93d6..f108bd26 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 @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - class LedgerCreateEntryByExternalIDResponse < Orb::Union + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -110,11 +112,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -228,11 +232,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -338,11 +344,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -444,11 +452,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -558,11 +568,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -676,11 +688,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -782,15 +796,17 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry] + def self?.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry] end 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 9dbf83bc..d7f39fde 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -67,10 +67,12 @@ module Orb type entry_type = :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] end type invoice_settings = @@ -104,10 +106,12 @@ module Orb type void_reason = :refund - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND: :refund - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs index 987efa48..d0014e4b 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry - class LedgerCreateEntryResponse < Orb::Union + module LedgerCreateEntryResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -110,11 +112,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] end end @@ -228,11 +232,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] end end @@ -338,11 +344,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -444,11 +452,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -558,11 +568,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] end end @@ -676,11 +688,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -782,15 +796,17 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry] + def self?.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry] end 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 fa19152c..f42ecce0 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 @@ -61,11 +61,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] end type entry_type = @@ -77,7 +79,9 @@ module Orb | :void_initiated | :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement EXPIRATION_CHANGE: :expiration_change @@ -86,7 +90,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] end end end diff --git a/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs index 6d64d5f8..7e82478d 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 @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - class LedgerListByExternalIDResponse < Orb::Union + module LedgerListByExternalIDResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -110,11 +112,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -228,11 +232,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -338,11 +344,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -444,11 +452,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -558,11 +568,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -676,11 +688,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -782,15 +796,17 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry] + def self?.variants: -> [Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry] end 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 cd13ab6a..59551873 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -61,11 +61,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] end type entry_type = @@ -77,7 +79,9 @@ module Orb | :void_initiated | :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement EXPIRATION_CHANGE: :expiration_change @@ -86,7 +90,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] end end end diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index 6530740a..b63d1f0d 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry - class LedgerListResponse < Orb::Union + module LedgerListResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -110,11 +112,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] end end @@ -228,11 +232,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] end end @@ -338,11 +344,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -444,11 +452,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -558,11 +568,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] end end @@ -676,11 +688,13 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -782,15 +796,17 @@ module Orb type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry] + def self?.variants: -> [Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry] end 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 fb85415b..746ed054 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 @@ -80,11 +80,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs index 66a8262c..95130380 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 @@ -75,11 +75,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_params.rbs b/sig/orb/models/customers/credits/top_up_create_params.rbs index 2d58e952..e52d6c4c 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -80,11 +80,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_response.rbs b/sig/orb/models/customers/credits/top_up_create_response.rbs index a8b6969a..571bf636 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -75,11 +75,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs index 070a25ad..fbbc843c 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 @@ -75,11 +75,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_list_response.rbs b/sig/orb/models/customers/credits/top_up_list_response.rbs index 2d95460f..2e3e014f 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -75,11 +75,13 @@ module Orb type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] end end end diff --git a/sig/orb/models/discount.rbs b/sig/orb/models/discount.rbs index 0a4c8eb5..36b76a6e 100644 --- a/sig/orb/models/discount.rbs +++ b/sig/orb/models/discount.rbs @@ -6,8 +6,10 @@ module Orb | Orb::Models::UsageDiscount | Orb::Models::AmountDiscount - class Discount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + module Discount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] end end end diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index ca77c1fc..8e682ee4 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -24,8 +24,10 @@ module Orb type grouping_value = String | Float | bool - class GroupingValue < Orb::Union - def self.variants: -> [String, Float, bool] + module GroupingValue + extend Orb::Union + + def self?.variants: -> [String, Float, bool] end end end diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index 1899fbba..3444b25b 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -57,13 +57,15 @@ module Orb type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillCloseResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillCloseResponse::status] end end end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index 3459f861..a6ae6e76 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -57,13 +57,15 @@ module Orb type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillCreateResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillCreateResponse::status] end end end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index 0753c5c5..a4c811e6 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -57,13 +57,15 @@ module Orb type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillFetchResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillFetchResponse::status] end end end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index 37ff73a8..9073cf9f 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -57,13 +57,15 @@ module Orb type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillListResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillListResponse::status] end end end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 067d6487..12821f9f 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -57,13 +57,15 @@ module Orb type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillRevertResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillRevertResponse::status] end end end diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index 28ec3b2e..34dea17c 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -1,6 +1,5 @@ module Orb module Models - class EventVolumes = Events::EventVolumes module Events diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index 1a16a5c8..758e0cf4 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -348,7 +348,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -359,7 +361,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::Models::Invoice::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -384,11 +386,13 @@ module Orb type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] end end @@ -494,7 +498,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -574,7 +580,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] end type type_ = @@ -650,7 +656,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -723,18 +731,20 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::type_] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::type_] end end type invoice_source = :subscription | :partial | :one_off - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION: :subscription PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> ::Array[Orb::Models::Invoice::invoice_source] + def self?.values: -> ::Array[Orb::Models::Invoice::invoice_source] end type line_item = @@ -842,7 +852,9 @@ module Orb | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -1042,7 +1054,7 @@ module Orb def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment] + def self?.variants: -> [Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment] end type maximum = @@ -1082,7 +1094,9 @@ module Orb | Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem | Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -1249,7 +1263,7 @@ module Orb end end - def self.variants: -> [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] end type tax_amount = @@ -1344,10 +1358,12 @@ module Orb type payment_provider = :stripe - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE: :stripe - def self.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] + def self?.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] end end @@ -1388,14 +1404,16 @@ module Orb type status = :issued | :paid | :synced | :void | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void DRAFT: :draft - def self.values: -> ::Array[Orb::Models::Invoice::status] + def self?.values: -> ::Array[Orb::Models::Invoice::status] end type subscription = { id: String } diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index 2c4ba9d4..c810406b 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -97,10 +97,12 @@ module Orb type model_type = :unit - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + UNIT: :unit - def self.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] + def self?.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] end type unit_config = { unit_amount: String } diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index b9e30707..d800a029 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -348,7 +348,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -359,7 +361,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -384,11 +386,13 @@ module Orb type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] end end @@ -494,7 +498,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -574,7 +580,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] end type type_ = @@ -650,7 +656,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -723,18 +731,20 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] end end type invoice_source = :subscription | :partial | :one_off - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION: :subscription PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] end type line_item = @@ -842,7 +852,9 @@ module Orb | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -1042,7 +1054,7 @@ module Orb def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment] + def self?.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment] end type maximum = @@ -1082,7 +1094,9 @@ module Orb | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -1249,7 +1263,7 @@ module Orb end end - def self.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] end type tax_amount = @@ -1344,10 +1358,12 @@ module Orb type payment_provider = :stripe - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE: :stripe - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] end end @@ -1388,14 +1404,16 @@ module Orb type status = :issued | :paid | :synced | :void | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void DRAFT: :draft - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status] end type subscription = { id: String } diff --git a/sig/orb/models/invoice_level_discount.rbs b/sig/orb/models/invoice_level_discount.rbs index 46d961c1..2d0a7272 100644 --- a/sig/orb/models/invoice_level_discount.rbs +++ b/sig/orb/models/invoice_level_discount.rbs @@ -5,8 +5,10 @@ module Orb | Orb::Models::AmountDiscount | Orb::Models::TrialDiscount - class InvoiceLevelDiscount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount] + module InvoiceLevelDiscount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount] 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 f9b516d3..39062f64 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -105,7 +105,9 @@ module Orb | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -305,7 +307,7 @@ module Orb def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment] + def self?.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment] end type maximum = @@ -345,7 +347,9 @@ module Orb | Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem | Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -512,7 +516,7 @@ module Orb end end - def self.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] end type tax_amount = diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index 1b856ea7..2d693200 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -95,23 +95,27 @@ module Orb type date_type = :due_date | :invoice_date - class DateType < Orb::Enum + module DateType + extend Orb::Enum + DUE_DATE: :due_date INVOICE_DATE: :invoice_date - def self.values: -> ::Array[Orb::Models::InvoiceListParams::date_type] + def self?.values: -> ::Array[Orb::Models::InvoiceListParams::date_type] end type status = :draft | :issued | :paid | :synced | :void - class Status < Orb::Enum + module Status + extend Orb::Enum + DRAFT: :draft ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void - def self.values: -> ::Array[Orb::Models::InvoiceListParams::status] + def self?.values: -> ::Array[Orb::Models::InvoiceListParams::status] end end end diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index 51971ac1..9f68200c 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -53,7 +53,9 @@ module Orb | :avalara | :anrok - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE: :stripe QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" @@ -62,7 +64,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index be532187..3e8e0dae 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -50,7 +50,9 @@ module Orb | :avalara | :anrok - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE: :stripe QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" @@ -59,7 +61,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index 2c79e754..29fe93cb 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -28,10 +28,12 @@ module Orb type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] end end end diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index 75786064..84b53872 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -113,7 +113,9 @@ module Orb | Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -313,7 +315,7 @@ module Orb def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment] end type base_plan = { id: String?, external_plan_id: String?, name: String? } @@ -423,14 +425,16 @@ module Orb type duration_unit = :daily | :monthly | :quarterly | :semi_annual | :annual - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAILY: :daily MONTHLY: :monthly QUARTERLY: :quarterly SEMI_ANNUAL: :semi_annual ANNUAL: :annual - def self.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] + def self?.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] end type maximum = @@ -482,12 +486,14 @@ module Orb type status = :active | :archived | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ARCHIVED: :archived DRAFT: :draft - def self.values: -> ::Array[Orb::Models::Plan::status] + def self?.values: -> ::Array[Orb::Models::Plan::status] end type trial_config = @@ -510,10 +516,12 @@ module Orb type trial_period_unit = :days - class TrialPeriodUnit < Orb::Enum + module TrialPeriodUnit + extend Orb::Enum + DAYS: :days - def self.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] + def self?.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] end end end diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index e3ffa244..6bae5799 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -78,7 +78,9 @@ module Orb | Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice | Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_plan_unit_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, @@ -152,7 +154,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -160,7 +164,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -193,11 +197,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -221,11 +227,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -303,7 +311,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -311,7 +321,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] end type package_config = @@ -350,11 +360,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -378,11 +390,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -460,7 +474,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -468,7 +484,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] end type matrix_config = @@ -530,11 +546,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -558,11 +576,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -640,7 +660,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -648,7 +670,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] end type tiered_config = @@ -705,11 +727,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -733,11 +757,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -815,7 +841,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -823,7 +851,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] end type tiered_bps_config = @@ -888,11 +916,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -916,11 +946,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1010,7 +1042,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1018,7 +1052,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] end type billing_cycle_configuration = @@ -1041,11 +1075,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1069,11 +1105,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1185,7 +1223,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1193,7 +1233,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1216,11 +1256,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1244,11 +1286,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1356,7 +1400,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1364,7 +1410,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] end type billing_cycle_configuration = @@ -1387,11 +1433,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1415,11 +1463,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1497,7 +1547,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1505,7 +1557,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -1528,11 +1580,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -1556,11 +1610,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1638,7 +1694,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1646,7 +1704,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -1669,11 +1727,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -1697,11 +1757,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1779,7 +1841,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1787,7 +1851,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -1810,11 +1874,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -1838,11 +1904,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1920,7 +1988,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1928,7 +1998,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -1951,11 +2021,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -1979,11 +2051,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2061,7 +2135,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2069,7 +2145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2092,11 +2168,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2120,11 +2198,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2202,7 +2282,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2210,7 +2292,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2233,11 +2315,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2261,11 +2345,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2343,7 +2429,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2351,7 +2439,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2374,11 +2462,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2402,11 +2492,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2484,7 +2576,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2492,7 +2586,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2515,11 +2609,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2543,11 +2639,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2625,7 +2723,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2633,7 +2733,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2656,11 +2756,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2684,11 +2786,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2766,7 +2870,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2774,7 +2880,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2797,11 +2903,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2825,11 +2933,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2907,7 +3017,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2915,7 +3027,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -2938,11 +3050,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -2966,11 +3080,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3048,7 +3164,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3056,7 +3174,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3079,11 +3197,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3107,11 +3227,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3189,7 +3311,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3197,7 +3321,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3220,11 +3344,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3248,11 +3374,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3330,7 +3458,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3338,7 +3468,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3361,11 +3491,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3389,11 +3521,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3471,7 +3605,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3479,7 +3615,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3502,11 +3638,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3530,11 +3668,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3612,7 +3752,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3620,7 +3762,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -3643,11 +3785,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3671,11 +3815,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3753,7 +3899,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3761,7 +3909,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -3784,11 +3932,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -3812,25 +3962,29 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice] + def self?.variants: -> [Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice] end type status = :active | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active DRAFT: :draft - def self.values: -> ::Array[Orb::Models::PlanCreateParams::status] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::status] end end end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index 35ffc30a..9f23fe3f 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -51,12 +51,14 @@ module Orb type status = :active | :archived | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ARCHIVED: :archived DRAFT: :draft - def self.values: -> ::Array[Orb::Models::PlanListParams::status] + def self?.values: -> ::Array[Orb::Models::PlanListParams::status] end end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 82002e72..d6fb1921 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -30,7 +30,9 @@ module Orb | Orb::Models::Price::ScalableMatrixWithTieredPricingPrice | Orb::Models::Price::CumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type unit_price = { id: String, @@ -167,18 +169,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -186,7 +192,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -221,11 +227,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -275,11 +283,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::price_type] end type unit_config = { unit_amount: String } @@ -448,18 +458,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -467,7 +481,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -502,11 +516,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -571,11 +587,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::price_type] end type dimensional_price_configuration = @@ -734,18 +752,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -753,7 +775,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -788,11 +810,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -881,11 +905,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::price_type] end type dimensional_price_configuration = @@ -1044,18 +1070,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1063,7 +1093,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1098,11 +1128,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1152,11 +1184,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::price_type] end type tiered_config = @@ -1349,18 +1383,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1368,7 +1406,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1403,11 +1441,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1457,11 +1497,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::price_type] end type tiered_bps_config = @@ -1662,11 +1704,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1685,7 +1729,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1693,7 +1739,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1728,11 +1774,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1782,11 +1830,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::price_type] end type dimensional_price_configuration = @@ -1945,11 +1995,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1990,7 +2042,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1998,7 +2052,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2033,11 +2087,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2087,11 +2143,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::price_type] end type dimensional_price_configuration = @@ -2250,11 +2308,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2289,7 +2349,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2297,7 +2359,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2332,11 +2394,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2386,11 +2450,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::price_type] end type dimensional_price_configuration = @@ -2549,18 +2615,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2568,7 +2638,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2603,11 +2673,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2657,11 +2729,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] end type dimensional_price_configuration = @@ -2820,18 +2894,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2839,7 +2917,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2874,11 +2952,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2928,11 +3008,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -3091,18 +3173,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3110,7 +3196,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3145,11 +3231,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3199,11 +3287,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::price_type] end type dimensional_price_configuration = @@ -3362,18 +3452,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3381,7 +3475,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3416,11 +3510,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3470,11 +3566,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] end type dimensional_price_configuration = @@ -3633,18 +3731,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3652,7 +3754,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3687,11 +3789,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3741,11 +3845,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] end type dimensional_price_configuration = @@ -3904,18 +4010,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3923,7 +4033,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3958,11 +4068,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4012,11 +4124,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] end type dimensional_price_configuration = @@ -4175,18 +4289,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4194,7 +4312,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4229,11 +4347,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4283,11 +4403,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::price_type] end type dimensional_price_configuration = @@ -4446,18 +4568,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4465,7 +4591,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4500,11 +4626,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4597,11 +4725,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] end type dimensional_price_configuration = @@ -4760,18 +4890,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4779,7 +4913,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4814,11 +4948,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4868,11 +5004,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -5031,18 +5169,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5050,7 +5192,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5085,11 +5227,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5139,11 +5283,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -5302,18 +5448,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5321,7 +5471,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5356,11 +5506,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5410,11 +5562,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::price_type] end type dimensional_price_configuration = @@ -5573,18 +5727,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5592,7 +5750,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5627,11 +5785,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5681,11 +5841,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] end type dimensional_price_configuration = @@ -5844,18 +6006,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5863,7 +6029,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5898,11 +6064,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5952,11 +6120,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] end type dimensional_price_configuration = @@ -6115,18 +6285,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6134,7 +6308,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6169,11 +6343,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6223,11 +6399,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] end type dimensional_price_configuration = @@ -6386,18 +6564,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6405,7 +6587,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6440,11 +6622,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6494,11 +6678,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -6657,18 +6843,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6676,7 +6866,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6711,11 +6901,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6765,11 +6957,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -6928,18 +7122,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6947,7 +7145,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6982,11 +7180,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7036,11 +7236,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -7199,18 +7401,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7218,7 +7424,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7253,11 +7459,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7307,11 +7515,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] end type dimensional_price_configuration = @@ -7470,18 +7680,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7489,7 +7703,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7524,11 +7738,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7578,11 +7794,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] end type dimensional_price_configuration = @@ -7741,18 +7959,22 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7760,7 +7982,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7795,11 +8017,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7849,11 +8073,13 @@ module Orb type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::price_type] end type dimensional_price_configuration = @@ -7876,7 +8102,7 @@ module Orb end end - def self.variants: -> [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice] + def self?.variants: -> [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice] end end end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index 92ba267c..600179b8 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -186,7 +186,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -194,15 +196,17 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] end type model_type = :cumulative_grouped_bulk - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + CUMULATIVE_GROUPED_BULK: :cumulative_grouped_bulk - def self.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end type unit_config = { unit_amount: String } @@ -235,11 +239,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] end end @@ -263,11 +269,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] end end diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index e945d561..6fe0eadc 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval | Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::Subscription::status] + def self?.values: -> ::Array[Orb::Models::Subscription::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 081ebb87..b0d0c92d 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -30,12 +30,14 @@ module Orb type cancel_option = :end_of_subscription_term | :immediate | :requested_date - class CancelOption < Orb::Enum + module CancelOption + extend Orb::Enum + END_OF_SUBSCRIPTION_TERM: :end_of_subscription_term IMMEDIATE: :immediate REQUESTED_DATE: :requested_date - def self.values: -> ::Array[Orb::Models::SubscriptionCancelParams::cancel_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionCancelParams::cancel_option] end end end diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index 3d5332a2..d96e8bae 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionCancelResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionCancelResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 83c789e3..15a47f57 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -174,7 +174,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -324,7 +326,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum] + def self?.variants: -> [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum] end end @@ -407,7 +409,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -415,7 +419,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] end end @@ -447,12 +451,14 @@ module Orb type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] end end @@ -483,7 +489,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, @@ -566,7 +574,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -574,7 +584,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -607,11 +617,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -635,11 +647,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -726,7 +740,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -734,7 +750,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -773,11 +789,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -801,11 +819,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -892,7 +912,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -900,7 +922,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -962,11 +984,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -990,11 +1014,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1081,7 +1107,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1089,7 +1117,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -1146,11 +1174,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1174,11 +1204,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1265,7 +1297,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1273,7 +1307,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1338,11 +1372,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1366,11 +1402,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1469,7 +1507,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1477,7 +1517,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1500,11 +1540,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1528,11 +1570,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1657,7 +1701,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1665,7 +1711,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1688,11 +1734,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1716,11 +1764,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1837,7 +1887,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1845,7 +1897,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -1868,11 +1920,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1896,11 +1950,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1987,7 +2043,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1995,7 +2053,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2018,11 +2076,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2046,11 +2106,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2137,7 +2199,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2145,7 +2209,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2168,11 +2232,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2196,11 +2262,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2287,7 +2355,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2295,7 +2365,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2318,11 +2388,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2346,11 +2418,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2437,7 +2511,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2445,7 +2521,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2468,11 +2544,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2496,11 +2574,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2587,7 +2667,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2595,7 +2677,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2618,11 +2700,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2646,11 +2730,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2737,7 +2823,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2745,7 +2833,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2768,11 +2856,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2796,11 +2886,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2887,7 +2979,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2895,7 +2989,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2918,11 +3012,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2946,11 +3042,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3037,7 +3135,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3045,7 +3145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3068,11 +3168,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3096,11 +3198,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3187,7 +3291,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3195,7 +3301,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3218,11 +3324,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3246,11 +3354,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3337,7 +3447,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3345,7 +3457,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3368,11 +3480,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3396,11 +3510,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3487,7 +3603,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3495,7 +3613,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3518,11 +3636,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3546,11 +3666,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3637,7 +3759,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3645,7 +3769,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -3668,11 +3792,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3696,11 +3822,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3787,7 +3915,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3795,7 +3925,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -3818,11 +3948,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -3846,11 +3978,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3937,7 +4071,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3945,7 +4081,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3968,11 +4104,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3996,11 +4134,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4087,7 +4227,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4095,7 +4237,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4118,11 +4260,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4146,11 +4290,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4237,7 +4383,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4245,7 +4393,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4268,11 +4416,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4296,11 +4446,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4387,7 +4539,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4395,7 +4549,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4418,11 +4572,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4446,16 +4602,18 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end @@ -4480,12 +4638,14 @@ module Orb type external_marketplace = :google | :aws | :azure - class ExternalMarketplace < Orb::Enum + module ExternalMarketplace + extend Orb::Enum + GOOGLE: :google AWS: :aws AZURE: :azure - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace] end type remove_adjustment = { adjustment_id: String } @@ -4538,7 +4698,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -4688,7 +4850,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum end - def self.variants: -> [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum] + def self?.variants: -> [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum] end end @@ -4767,7 +4929,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4775,7 +4939,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] end end @@ -4807,12 +4971,14 @@ module Orb type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] end end @@ -4843,7 +5009,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, @@ -4926,7 +5094,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4934,7 +5104,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -4967,11 +5137,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -4995,11 +5167,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5086,7 +5260,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5094,7 +5270,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -5133,11 +5309,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -5161,11 +5339,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5252,7 +5432,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5260,7 +5442,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -5322,11 +5504,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -5350,11 +5534,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5441,7 +5627,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5449,7 +5637,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -5506,11 +5694,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -5534,11 +5724,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5625,7 +5817,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5633,7 +5827,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -5698,11 +5892,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5726,11 +5922,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5829,7 +6027,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5837,7 +6037,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -5860,11 +6060,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5888,11 +6090,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6017,7 +6221,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6025,7 +6231,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -6048,11 +6254,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6076,11 +6284,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6197,7 +6407,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6205,7 +6417,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -6228,11 +6440,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -6256,11 +6470,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6347,7 +6563,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6355,7 +6573,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -6378,11 +6596,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -6406,11 +6626,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6497,7 +6719,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6505,7 +6729,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -6528,11 +6752,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -6556,11 +6782,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6647,7 +6875,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6655,7 +6885,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -6678,11 +6908,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6706,11 +6938,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6797,7 +7031,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6805,7 +7041,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -6828,11 +7064,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -6856,11 +7094,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6947,7 +7187,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6955,7 +7197,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6978,11 +7220,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7006,11 +7250,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7097,7 +7343,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7105,7 +7353,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7128,11 +7376,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7156,11 +7406,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7247,7 +7499,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7255,7 +7509,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7278,11 +7532,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7306,11 +7562,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7397,7 +7655,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7405,7 +7665,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -7428,11 +7688,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7456,11 +7718,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7547,7 +7811,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7555,7 +7821,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7578,11 +7844,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7606,11 +7874,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7697,7 +7967,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7705,7 +7977,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7728,11 +8000,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7756,11 +8030,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7847,7 +8123,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7855,7 +8133,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -7878,11 +8156,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -7906,11 +8186,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7997,7 +8279,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8005,7 +8289,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -8028,11 +8312,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8056,11 +8342,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8147,7 +8435,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8155,7 +8445,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -8178,11 +8468,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -8206,11 +8498,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8297,7 +8591,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8305,7 +8601,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -8328,11 +8624,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -8356,11 +8654,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8447,7 +8747,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8455,7 +8757,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -8478,11 +8780,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -8506,11 +8810,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8597,7 +8903,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8605,7 +8913,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -8628,11 +8936,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -8656,11 +8966,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8747,7 +9059,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8755,7 +9069,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -8778,11 +9092,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -8806,16 +9122,18 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end end diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index 06aa2ba3..d351f396 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 74364969..01780204 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -33,11 +33,13 @@ module Orb type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] end end end diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index d0f10aca..4efed748 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -57,19 +57,23 @@ module Orb type granularity = :day - class Granularity < Orb::Enum + module Granularity + extend Orb::Enum + DAY: :day - def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::granularity] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::granularity] end type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] end end end diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index 84acdf74..73d76b70 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -55,12 +55,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionListParams::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionListParams::status] end end end diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index ffaef291..7194855e 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -111,8 +111,10 @@ module Orb type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type allocation_price = @@ -144,7 +146,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -152,7 +156,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] end end @@ -161,7 +165,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - class Discount < Orb::Union + module Discount + extend Orb::Union + type amount_discount_creation_params = { amount_discount: Float, discount_type: :amount } @@ -210,13 +216,15 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] end type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type fixed_fee_quantity_transition = @@ -262,7 +270,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_floating_unit_price = { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, @@ -341,7 +351,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -349,7 +361,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -382,11 +394,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -410,11 +424,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -497,7 +513,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -505,7 +523,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] end type package_config = @@ -544,11 +562,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -572,11 +592,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -659,7 +681,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -667,7 +691,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] end type matrix_config = @@ -729,11 +753,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -757,11 +783,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -844,7 +872,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -852,7 +882,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] end type matrix_with_allocation_config = @@ -918,11 +948,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -946,11 +978,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1033,7 +1067,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1041,7 +1077,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] end type tiered_config = @@ -1098,11 +1134,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1126,11 +1164,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1213,7 +1253,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1221,7 +1263,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1286,11 +1328,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1314,11 +1358,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1413,7 +1459,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1421,7 +1469,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] end type billing_cycle_configuration = @@ -1444,11 +1492,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1472,11 +1522,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1597,7 +1649,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1605,7 +1659,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1628,11 +1682,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1656,11 +1712,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1773,7 +1831,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1781,7 +1841,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] end type billing_cycle_configuration = @@ -1804,11 +1864,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1832,11 +1894,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1919,7 +1983,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1927,7 +1993,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -1950,11 +2016,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -1978,11 +2046,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2065,7 +2135,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2073,7 +2145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2096,11 +2168,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2124,11 +2198,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2211,7 +2287,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2219,7 +2297,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] end type billing_cycle_configuration = @@ -2242,11 +2320,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -2270,11 +2350,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2357,7 +2439,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2365,7 +2449,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2388,11 +2472,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2416,11 +2502,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2503,7 +2591,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2511,7 +2601,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2534,11 +2624,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2562,11 +2654,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2649,7 +2743,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2657,7 +2753,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2680,11 +2776,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2708,11 +2806,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2795,7 +2895,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2803,7 +2905,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2826,11 +2928,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2854,11 +2958,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2941,7 +3047,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2949,7 +3057,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2972,11 +3080,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -3000,11 +3110,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3087,7 +3199,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3095,7 +3209,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3118,11 +3232,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3146,11 +3262,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3233,7 +3351,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3241,7 +3361,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3264,11 +3384,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3292,11 +3414,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3379,7 +3503,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3387,7 +3513,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3410,11 +3536,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3438,11 +3566,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3525,7 +3655,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3533,7 +3665,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3556,11 +3688,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3584,11 +3718,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3671,7 +3807,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3679,7 +3817,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3702,11 +3840,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3730,11 +3870,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3817,7 +3959,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3825,7 +3969,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -3848,11 +3992,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -3876,11 +4022,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3963,7 +4111,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3971,7 +4121,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3994,11 +4144,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -4022,11 +4174,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4109,7 +4263,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4117,7 +4273,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4140,11 +4296,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4168,11 +4326,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4255,7 +4415,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4263,7 +4425,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -4286,11 +4448,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4314,11 +4478,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4401,7 +4567,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4409,7 +4577,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4432,11 +4600,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4460,11 +4630,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4547,7 +4719,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4555,7 +4729,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -4578,11 +4752,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -4606,16 +4782,18 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice] end end @@ -4648,7 +4826,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -4798,19 +4978,23 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum] end type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end end @@ -4858,8 +5042,10 @@ module Orb type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type fixed_fee_quantity_transition = @@ -4877,8 +5063,10 @@ module Orb type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end end @@ -4910,14 +5098,18 @@ module Orb type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_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 8901dd95..943111bd 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index 0003fa79..696ae65f 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -122,12 +122,14 @@ module Orb type change_option = :requested_date | :end_of_subscription_term | :immediate - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + REQUESTED_DATE: :requested_date END_OF_SUBSCRIPTION_TERM: :end_of_subscription_term IMMEDIATE: :immediate - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] end type add_adjustment = @@ -163,7 +165,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -313,7 +317,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum] end end @@ -396,7 +400,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -404,7 +410,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] end end @@ -436,12 +442,14 @@ module Orb type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] end end @@ -472,7 +480,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, @@ -555,7 +565,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -563,7 +575,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -596,11 +608,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -624,11 +638,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -715,7 +731,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -723,7 +741,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -762,11 +780,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -790,11 +810,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -881,7 +903,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -889,7 +913,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -951,11 +975,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -979,11 +1005,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1070,7 +1098,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1078,7 +1108,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -1135,11 +1165,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1163,11 +1195,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1254,7 +1288,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1262,7 +1298,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1327,11 +1363,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1355,11 +1393,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1458,7 +1498,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1466,7 +1508,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1489,11 +1531,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1517,11 +1561,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1646,7 +1692,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1654,7 +1702,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1677,11 +1725,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1705,11 +1755,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1826,7 +1878,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1834,7 +1888,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -1857,11 +1911,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1885,11 +1941,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1976,7 +2034,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1984,7 +2044,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2007,11 +2067,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2035,11 +2097,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2126,7 +2190,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2134,7 +2200,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2157,11 +2223,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2185,11 +2253,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2276,7 +2346,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2284,7 +2356,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2307,11 +2379,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2335,11 +2409,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2426,7 +2502,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2434,7 +2512,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2457,11 +2535,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2485,11 +2565,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2576,7 +2658,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2584,7 +2668,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2607,11 +2691,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2635,11 +2721,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2726,7 +2814,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2734,7 +2824,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2757,11 +2847,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2785,11 +2877,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2876,7 +2970,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2884,7 +2980,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2907,11 +3003,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2935,11 +3033,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3026,7 +3126,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3034,7 +3136,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3057,11 +3159,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3085,11 +3189,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3176,7 +3282,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3184,7 +3292,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3207,11 +3315,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3235,11 +3345,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3326,7 +3438,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3334,7 +3448,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3357,11 +3471,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3385,11 +3501,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3476,7 +3594,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3484,7 +3604,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3507,11 +3627,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3535,11 +3657,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3626,7 +3750,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3634,7 +3760,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -3657,11 +3783,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3685,11 +3813,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3776,7 +3906,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3784,7 +3916,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -3807,11 +3939,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -3835,11 +3969,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3926,7 +4062,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3934,7 +4072,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3957,11 +4095,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3985,11 +4125,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4076,7 +4218,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4084,7 +4228,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4107,11 +4251,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4135,11 +4281,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4226,7 +4374,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4234,7 +4384,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4257,11 +4407,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4285,11 +4437,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4376,7 +4530,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4384,7 +4540,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4407,11 +4563,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4435,28 +4593,32 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end type billing_cycle_alignment = :unchanged | :plan_change_date | :start_of_month - class BillingCycleAlignment < Orb::Enum + module BillingCycleAlignment + extend Orb::Enum + UNCHANGED: :unchanged PLAN_CHANGE_DATE: :plan_change_date START_OF_MONTH: :start_of_month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] end type billing_cycle_anchor_configuration = @@ -4528,7 +4690,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -4678,7 +4842,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum] end end @@ -4757,7 +4921,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4765,7 +4931,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] end end @@ -4797,12 +4963,14 @@ module Orb type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] end end @@ -4833,7 +5001,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, @@ -4916,7 +5086,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4924,7 +5096,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -4957,11 +5129,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -4985,11 +5159,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5076,7 +5252,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5084,7 +5262,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -5123,11 +5301,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -5151,11 +5331,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5242,7 +5424,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5250,7 +5434,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -5312,11 +5496,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -5340,11 +5526,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5431,7 +5619,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5439,7 +5629,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -5496,11 +5686,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -5524,11 +5716,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5615,7 +5809,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5623,7 +5819,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -5688,11 +5884,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5716,11 +5914,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5819,7 +6019,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5827,7 +6029,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -5850,11 +6052,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5878,11 +6082,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6007,7 +6213,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6015,7 +6223,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -6038,11 +6246,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6066,11 +6276,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6187,7 +6399,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6195,7 +6409,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -6218,11 +6432,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -6246,11 +6462,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6337,7 +6555,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6345,7 +6565,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -6368,11 +6588,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -6396,11 +6618,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6487,7 +6711,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6495,7 +6721,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -6518,11 +6744,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -6546,11 +6774,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6637,7 +6867,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6645,7 +6877,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -6668,11 +6900,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6696,11 +6930,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6787,7 +7023,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6795,7 +7033,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -6818,11 +7056,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -6846,11 +7086,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6937,7 +7179,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6945,7 +7189,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6968,11 +7212,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6996,11 +7242,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7087,7 +7335,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7095,7 +7345,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7118,11 +7368,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7146,11 +7398,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7237,7 +7491,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7245,7 +7501,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7268,11 +7524,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7296,11 +7554,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7387,7 +7647,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7395,7 +7657,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -7418,11 +7680,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7446,11 +7710,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7537,7 +7803,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7545,7 +7813,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7568,11 +7836,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7596,11 +7866,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7687,7 +7959,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7695,7 +7969,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7718,11 +7992,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7746,11 +8022,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7837,7 +8115,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7845,7 +8125,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -7868,11 +8148,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -7896,11 +8178,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7987,7 +8271,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7995,7 +8281,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -8018,11 +8304,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8046,11 +8334,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8137,7 +8427,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8145,7 +8437,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -8168,11 +8460,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -8196,11 +8490,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8287,7 +8583,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8295,7 +8593,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -8318,11 +8616,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -8346,11 +8646,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8437,7 +8739,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8445,7 +8749,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -8468,11 +8772,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -8496,11 +8802,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8587,7 +8895,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8595,7 +8905,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -8618,11 +8928,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -8646,11 +8958,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8737,7 +9051,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8745,7 +9061,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -8768,11 +9084,13 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -8796,16 +9114,18 @@ module Orb type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] 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 780f2275..8dc4dd30 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index 551e1086..41147c8c 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index a784c4f5..521465ca 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs index 9b53a75f..30ea8939 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 @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs index 507c82b2..5dcfbbbd 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs index a73cddaa..a455c258 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -41,12 +41,14 @@ module Orb type change_option = :immediate | :upcoming_invoice | :effective_date - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + IMMEDIATE: :immediate UPCOMING_INVOICE: :upcoming_invoice EFFECTIVE_DATE: :effective_date - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] end end end diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs index 59ee47f1..db8fba33 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index 30cbf434..ba78ae69 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -25,20 +25,14 @@ module Orb def to_hash: -> Orb::Models::subscription_update_trial_params - type trial_end_date = - Time - | Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1 + type trial_end_date = Time | :immediate - class TrialEndDate < Orb::Union - type union_member1 = :immediate + module TrialEndDate + extend Orb::Union - class UnionMember1 < Orb::Enum - IMMEDIATE: :immediate + IMMEDIATE: :immediate - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] - end - - def self.variants: -> [Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] + def self?.variants: -> [Time, :immediate] end end end diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index 7561b531..9f6cb1d3 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -147,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -347,7 +349,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] + def self?.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] end end @@ -375,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -481,7 +485,7 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -659,12 +663,14 @@ module Orb type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index eeb3a87d..9cbc3186 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -4,7 +4,9 @@ module Orb Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage | Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - class SubscriptionUsage < Orb::Union + module SubscriptionUsage + extend Orb::Union + type ungrouped_subscription_usage = { data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] @@ -74,11 +76,13 @@ module Orb type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] end end end @@ -175,16 +179,18 @@ module Orb type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] end end end - def self.variants: -> [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + def self?.variants: -> [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] end end end diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index ec7c2511..aa3a9690 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -32,10 +32,12 @@ module Orb type discount_type = :trial - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + TRIAL: :trial - def self.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] end end end diff --git a/sig/orb/models/usage_discount.rbs b/sig/orb/models/usage_discount.rbs index c7076dd6..1b273d23 100644 --- a/sig/orb/models/usage_discount.rbs +++ b/sig/orb/models/usage_discount.rbs @@ -28,10 +28,12 @@ module Orb type discount_type = :usage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + USAGE: :usage - def self.values: -> ::Array[Orb::Models::UsageDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::UsageDiscount::discount_type] end end end diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index 93690538..588b7753 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -17,7 +17,7 @@ module Orb idempotency_key: String?, extra_query: ::Hash[String, (::Array[String] | String)?]?, extra_headers: ::Hash[String, String?]?, - extra_body: ::Hash[Symbol, top]?, + extra_body: top?, max_retries: Integer?, timeout: Float? } @@ -31,7 +31,7 @@ module Orb attr_accessor extra_headers: ::Hash[String, String?]? - attr_accessor extra_body: ::Hash[Symbol, top]? + attr_accessor extra_body: top? attr_accessor max_retries: Integer? diff --git a/test/orb/base_model_test.rb b/test/orb/base_model_test.rb index 111ec614..334cf60d 100644 --- a/test/orb/base_model_test.rb +++ b/test/orb/base_model_test.rb @@ -3,7 +3,9 @@ require_relative "test_helper" class Orb::Test::BaseModelTest < Minitest::Test - class E1 < Orb::Enum + module E1 + extend Orb::Enum + A = :a B = :b end @@ -242,13 +244,17 @@ class M3 < M1 optional :b, E1, api_name: :renamed_again end - class U1 < Orb::Union + module U1 + extend Orb::Union + discriminator :type variant :a, M1 variant :b, M3 end - class U2 < Orb::Union + module U2 + extend Orb::Union + variant A1 variant A3 end @@ -330,12 +336,16 @@ def test_basic_const end end - class E2 < Orb::Enum + module E2 + extend Orb::Enum + A = :a B = :b end - class U3 < Orb::Union + module U3 + extend Orb::Union + discriminator :type variant :a, M1 variant :b, M3 @@ -353,7 +363,9 @@ def test_basic_eql assert_equal(U1, U3) end - class U4 < Orb::Union + module U4 + extend Orb::Union + variant :a, const: :a variant :b, const: :b end From 99b36e212b42bcc173fb6b37991f4d82731ef507 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:53:43 +0000 Subject: [PATCH 11/12] fix: pages should be able to accept non-converter models (#176) --- lib/orb/page.rb | 2 +- test/orb/resources/alerts_test.rb | 2 ++ test/orb/resources/coupons/subscriptions_test.rb | 2 ++ test/orb/resources/coupons_test.rb | 2 ++ test/orb/resources/credit_notes_test.rb | 2 ++ test/orb/resources/customers/balance_transactions_test.rb | 2 ++ test/orb/resources/customers/credits/ledger_test.rb | 4 ++++ test/orb/resources/customers/credits/top_ups_test.rb | 4 ++++ test/orb/resources/customers/credits_test.rb | 4 ++++ test/orb/resources/customers_test.rb | 2 ++ test/orb/resources/dimensional_price_groups_test.rb | 2 ++ test/orb/resources/events/backfills_test.rb | 2 ++ test/orb/resources/invoices_test.rb | 2 ++ test/orb/resources/items_test.rb | 2 ++ test/orb/resources/metrics_test.rb | 2 ++ test/orb/resources/plans_test.rb | 2 ++ test/orb/resources/prices_test.rb | 2 ++ test/orb/resources/subscriptions_test.rb | 4 ++++ 18 files changed, 43 insertions(+), 1 deletion(-) diff --git a/lib/orb/page.rb b/lib/orb/page.rb index 135e3a44..95e63a90 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -43,7 +43,7 @@ def initialize(client:, req:, headers:, page_data:) case page_data in {data: Array | nil => data} - @data = data&.map { model.coerce(_1) } + @data = data&.map { Orb::Converter.coerce(model, _1) } else end diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index 0f9a97f2..81de7691 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -59,6 +59,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Alert end diff --git a/test/orb/resources/coupons/subscriptions_test.rb b/test/orb/resources/coupons/subscriptions_test.rb index 3a57292a..64b7ee61 100644 --- a/test/orb/resources/coupons/subscriptions_test.rb +++ b/test/orb/resources/coupons/subscriptions_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Subscription end diff --git a/test/orb/resources/coupons_test.rb b/test/orb/resources/coupons_test.rb index 6a938d89..250bb784 100644 --- a/test/orb/resources/coupons_test.rb +++ b/test/orb/resources/coupons_test.rb @@ -35,6 +35,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Coupon end diff --git a/test/orb/resources/credit_notes_test.rb b/test/orb/resources/credit_notes_test.rb index cdd90ea9..6e56ef96 100644 --- a/test/orb/resources/credit_notes_test.rb +++ b/test/orb/resources/credit_notes_test.rb @@ -41,6 +41,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::CreditNote end diff --git a/test/orb/resources/customers/balance_transactions_test.rb b/test/orb/resources/customers/balance_transactions_test.rb index d46bf030..6773beed 100644 --- a/test/orb/resources/customers/balance_transactions_test.rb +++ b/test/orb/resources/customers/balance_transactions_test.rb @@ -34,6 +34,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::BalanceTransactionListResponse end diff --git a/test/orb/resources/customers/credits/ledger_test.rb b/test/orb/resources/customers/credits/ledger_test.rb index 6034e0c2..f852150f 100644 --- a/test/orb/resources/customers/credits/ledger_test.rb +++ b/test/orb/resources/customers/credits/ledger_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::LedgerListResponse end @@ -445,6 +447,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::LedgerListByExternalIDResponse end diff --git a/test/orb/resources/customers/credits/top_ups_test.rb b/test/orb/resources/customers/credits/top_ups_test.rb index 2687504e..3052be3f 100644 --- a/test/orb/resources/customers/credits/top_ups_test.rb +++ b/test/orb/resources/customers/credits/top_ups_test.rb @@ -40,6 +40,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::TopUpListResponse end @@ -115,6 +117,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::TopUpListByExternalIDResponse end diff --git a/test/orb/resources/customers/credits_test.rb b/test/orb/resources/customers/credits_test.rb index 60d0d4c5..83215ec9 100644 --- a/test/orb/resources/customers/credits_test.rb +++ b/test/orb/resources/customers/credits_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::CreditListResponse end @@ -36,6 +38,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::CreditListByExternalIDResponse end diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index fb7e1fc0..5407b73f 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -81,6 +81,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customer end diff --git a/test/orb/resources/dimensional_price_groups_test.rb b/test/orb/resources/dimensional_price_groups_test.rb index d9b003cb..3160d4e3 100644 --- a/test/orb/resources/dimensional_price_groups_test.rb +++ b/test/orb/resources/dimensional_price_groups_test.rb @@ -54,6 +54,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::DimensionalPriceGroup end diff --git a/test/orb/resources/events/backfills_test.rb b/test/orb/resources/events/backfills_test.rb index 6355bf80..233f5e36 100644 --- a/test/orb/resources/events/backfills_test.rb +++ b/test/orb/resources/events/backfills_test.rb @@ -39,6 +39,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Events::BackfillListResponse end diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index 0a45a981..91ec9f2d 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -135,6 +135,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Invoice end diff --git a/test/orb/resources/items_test.rb b/test/orb/resources/items_test.rb index 19bdf7a6..ee45dc22 100644 --- a/test/orb/resources/items_test.rb +++ b/test/orb/resources/items_test.rb @@ -45,6 +45,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Item end diff --git a/test/orb/resources/metrics_test.rb b/test/orb/resources/metrics_test.rb index f3fe13a4..941a454a 100644 --- a/test/orb/resources/metrics_test.rb +++ b/test/orb/resources/metrics_test.rb @@ -55,6 +55,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::BillableMetric end diff --git a/test/orb/resources/plans_test.rb b/test/orb/resources/plans_test.rb index b1a64ddb..9e0ab612 100644 --- a/test/orb/resources/plans_test.rb +++ b/test/orb/resources/plans_test.rb @@ -98,6 +98,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Plan end diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 48fe5e9f..2632969b 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -1567,6 +1567,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Price end diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index bcf8afe2..dda4a156 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -87,6 +87,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Subscription end @@ -220,6 +222,8 @@ def test_fetch_schedule end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::SubscriptionFetchScheduleResponse end From 587c6dbaf2fda0b382524a971fce1cb3444faf81 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:54:08 +0000 Subject: [PATCH 12/12] release: 0.1.0-alpha.29 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ Gemfile.lock | 2 +- lib/orb/version.rb | 2 +- rbi/lib/orb/version.rbi | 2 +- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f4710698..c412e974 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.28" + ".": "0.1.0-alpha.29" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a9001d2a..94af7d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 0.1.0-alpha.29 (2025-03-21) + +Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.28...v0.1.0-alpha.29) + +### ⚠ BREAKING CHANGES + +* support `for item in stream` style iteration on `Stream`s ([#173](https://github.com/orbcorp/orb-ruby/issues/173)) + +### Features + +* support `for item in stream` style iteration on `Stream`s ([#173](https://github.com/orbcorp/orb-ruby/issues/173)) ([588fd1d](https://github.com/orbcorp/orb-ruby/commit/588fd1de378ca262b9db8b368386a7aab7b2a36f)) + + +### Bug Fixes + +* pages should be able to accept non-converter models ([#176](https://github.com/orbcorp/orb-ruby/issues/176)) ([99b36e2](https://github.com/orbcorp/orb-ruby/commit/99b36e212b42bcc173fb6b37991f4d82731ef507)) + + +### Chores + +* add `[@yieldparam](https://github.com/yieldparam)` to yard doc ([#170](https://github.com/orbcorp/orb-ruby/issues/170)) ([b6918c1](https://github.com/orbcorp/orb-ruby/commit/b6918c1152a904e29ce040c5dd2cd5e5cb056191)) +* disable overloads in `*.rbs` definitions for readable LSP errors ([#172](https://github.com/orbcorp/orb-ruby/issues/172)) ([44a5b19](https://github.com/orbcorp/orb-ruby/commit/44a5b194dfcbea531ee4bdf63a34008304f9c878)) +* document Client's concurrency capability ([#169](https://github.com/orbcorp/orb-ruby/issues/169)) ([99f36ef](https://github.com/orbcorp/orb-ruby/commit/99f36efba8586dae3cde19d103254335142e8341)) +* ignore some spurious linter warnings and formatting changes ([#168](https://github.com/orbcorp/orb-ruby/issues/168)) ([0925835](https://github.com/orbcorp/orb-ruby/commit/0925835eceda886f027946a4368ddc534f5c3ce0)) +* **internal:** codegen related update ([#174](https://github.com/orbcorp/orb-ruby/issues/174)) ([4b4ddd6](https://github.com/orbcorp/orb-ruby/commit/4b4ddd67f9c8f51e786dd6cd902f0e4677942945)) +* **internal:** version bump ([#166](https://github.com/orbcorp/orb-ruby/issues/166)) ([421c2f7](https://github.com/orbcorp/orb-ruby/commit/421c2f770dcb42147266c5630f0919f247d21b9c)) +* switch to prettier looking sorbet annotations ([#175](https://github.com/orbcorp/orb-ruby/issues/175)) ([19ab2d6](https://github.com/orbcorp/orb-ruby/commit/19ab2d6ba75461fd1f96598b480932e152407157)) +* use multi-line formatting style for really long lines ([#171](https://github.com/orbcorp/orb-ruby/issues/171)) ([7b3ad6e](https://github.com/orbcorp/orb-ruby/commit/7b3ad6e5dbee813dfc0a7f1ea04e01a48e31dd11)) + ## 0.1.0-alpha.28 (2025-03-18) Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.27...v0.1.0-alpha.28) diff --git a/Gemfile.lock b/Gemfile.lock index 017ff7df..affaad2c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.28) + orb (0.1.0.pre.alpha.29) connection_pool GEM diff --git a/lib/orb/version.rb b/lib/orb/version.rb index d23c0624..0987ef1b 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.1.0-alpha.28" + VERSION = "0.1.0-alpha.29" end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index e45a11f8..9feb2b8e 100644 --- a/rbi/lib/orb/version.rbi +++ b/rbi/lib/orb/version.rbi @@ -1,5 +1,5 @@ # typed: strong module Orb - VERSION = "0.1.0-alpha.28" + VERSION = "0.1.0-alpha.29" end